I am currently trying to make my game to where if i get under 40 seconds i move on to the "EndSection" and that section gives me the choices of moving on or ending the game. But i guess it only lets me go to "EndSection" if get 40 seconds flat. Please Help me if you can!Thank you!
[if f_time# = 40 : rem if the player reaches needed seconds
for x = 1 to 100
if object exist (x) = 1 then delete object x
next x
gosub EndSection
endif
EndSection:
return
do
if scancode()=0 then exit
loop
do
center text 320,240,"MOVE ON [Y/N]?"
if Inkey$()="y"
gosub OpenSection
endif
if Inkey$()="n"
cls : end
endif
sync
loop
end]