That works great on going back and forth between the options thing, but why doesnt it work for back and forth between the game and the main menu?
i want it so if you press esc in the game, it goes to the main menu, if you press esc, at the main menu it quits
so i did the simple
This in the playgame() loop:
at this point selection=1 so it SHOULD return to the main menu, but instead it closes, don't know why, theres no code in the playgame() function that says termanate if keyhit(1)..
and i put this in the Mainmenu() function:
it closes ok at the main menu, but when i hit ESC in the game it also closes... any ideas?
End If
i want it so if you press esc in the game, it goes to the main menu, if you press esc, at the main menu it quits
so i did the simple
This in the playgame() loop:
If KeyHit(1) Then selection=1 End If
at this point selection=1 so it SHOULD return to the main menu, but instead it closes, don't know why, theres no code in the playgame() function that says termanate if keyhit(1)..
and i put this in the Mainmenu() function:
;if esc is pressed ONLY AT THE MAIN MENU quit. If KeyHit(1) End
it closes ok at the main menu, but when i hit ESC in the game it also closes... any ideas?
End If