First of all, I using Dark Basic Classic.
Well I am making an odd sort of game that halfway combines Pong and Breakout. I am almost completely finished. I need to fix the scores though. When the 2 balls pass the boundary of the screen. The score is supposed to increase by one. Instead the score increases infinitely.
I am pretty sure all I need to do is put the sprite back in the screen, but so far my attempts have been unsuccessful.
Here is a snippet of what i have so far.
rem scores
if spritey2 > 600 or spritey > 600
score2 = score2 + 1
endif
if spritey2 < 1 or spritey < 1
score1 = score1 + 1
endif