Quote: "for t = 1 to NumberOfFruits : rem If I hit one of the little fruits
if Object collision(1,t +
play sound 4
Timer = Timer + 10 : rem Adds 10 more seconds to the time
` delete object t + NumberOfFruits
exclude object on t + NumberOfFruits
endIf
next t"
for t = 1 to NumberOfFruits : rem If I hit one of the little fruits
if Object collision(1,t)
play sound 4
Timer = Timer + 10 : rem Adds 10 more seconds to the time
` delete object t
exclude object on t
endIf
next t
There is no need to add on the number of fruits. If the object you created was 2, T is 2 and number of fruits is 5 it would check for number 7
EDIT: Oh, NumberOfFruits)>0. What are you trying to do, It seems "NumberOfFruits" is the amount of fruits you want in the game. You need to give it a specific value like "NumberOfFruits = 5"
---