Well thanks that sure is a good idea. There's only one problem; it didn't work. I was a little unsure on exactly where to put the code so i tried it in a few places.
I tried it here.
`This is outside the subroutine
if returnkey()
`This is the code you sudgested
if returnkey()=1 then repeat:until returnkey()=0
`320 is to play the game
`This is irrelevent
if arrowy=320
delete sprite 50
delete sprite 51
delete sprite 52
delete sprite 53
cls
exit
endif
`This is the subroutine
if arrowy=400
gosub areyousure
endif
endif
I also tried it here.
areyousure:
`This is the code
if returnkey()=1 then repeat:until returnkey()=0
sprite 55,238,200,25
smallarrowx=258
do
sprite 56,smallarrowx,259,26
if rightkey()
if smallarrowx=258
smallarrowx=280
endif
if smallarrowx=280
smallarrowx=258
endif
endif
if leftkey()
if smallarrowx=258
smallarrowx=280
endif
if smallarrowx=280
smallarrowx=258
endif
endif
if returnkey()
if smallarrowx=258
goto menuover
endif
if smallarrowx=280
exit
endif
endif
loop
return
I also tried it like this.
if returnkey()
repeat
until returnkey()=0
if arrowy=320
delete sprite 50
delete sprite 51
delete sprite 52
delete sprite 53
cls
exit
endif
if arrowy=400
gosub areyousure
endif
endif
See what happens is, when i press enter, it just freezes. Then i press enter again and it does the whole 'execute too fast and exit' thing. Does anyone have any insight?