I have been working on editing a game for a school class. I have edited it so that when you collide with a certain fruit (the id is 650) that the game will gosub a different endsection. I copied and pasted the original endsection and made it EndSection2 instead of EndSection. The endsections are at the bottom and the second one at the very bottom. Any help is appreciated
rem *******bad fruit********
make object cone 650,100
position object 650 ,Rnd(1900)-950,30,Rnd(1900)-950
texture object 650,750
make object collision box 650,-50,-50,-50,50,50,50,0
rem *******bad fruit coliision*******
if object collision(1,650)>0
exclude object on 650
gosub EndSection2
endif
EndSection2:
REM DECLARE VARIABLES
REM SCREEN DISPLAY
delete object 550
delete object 560
delete object 650
delete object 50
cls 0
center text 320,200,"YOU LOSE"
center text 320,220,"YOU ATE THE BAD FRUIT"
REM SOUND EFFECTS
stop sound 1
play sound 2
REM SPECIAL EFFECTS
REM REFRESH SCREEN
sync
REM *** END SECTION LOOP
do
if scancode()=0 then exit
loop
do
REM CONTROL INPUT
if Inkey$()="y"
loop sound 1
gosub OptionsSection
endif
if Inkey$()="n"
cls : end
endif
REM REFRESH SCREEN
sync
loop
end
REM *** STOP END SECTION
REM *****************************************