How come I didn't get to use DB when I was at school?

when you post code can you please put it in a code box using the tags
Quote: "
Oops! didn't know you could do that

use [co de] [/co de] without the space. Only use code boxes when it will ACTUALLY SAVE SPACE though, Latch hasn't used one as his snippets were only 1 line long."
You can increment a variable by using INC.
inc tex,1
tex can be an integer (adding # to the end makes it a float and takes up more memory)
for t = 1 to NumberOfFruits : rem If I hit one of the little fruits
if Object collision(1,t + NumberOfFruits)>0
play sound 4
delete object t + NumberOfFruits
Are you aware that this will delete the object after the max number of fruits ie
NumberOfFruits = 10
for t = 1 to 10
if Object collision(1,t + 10)>0
play sound 4
delete object t + 10
...
rem I could be wrong but I think you meant this
for t = 1 to 10
if Object collision(1,t)>0
play sound 4
delete object t
...