i used a loop in my menu that was seperate to the main one...
there is code in the post
http://www.thegamecreators.com/?m=forum_view&t=17057&b=10 which i placed there that may help...
In my posted code, to exit back to the menu, just put a tag at the very start of code:
goto menustart
menustart:
menu stuff is here
etc etc
then in the main loop of the game, have an IF like this:
IF escapekey() = 1
goto menustart
ENDIF
the only problem with this would be that it doesnt pause the game, it actually resets everything, so your prolly best off having a seperate section of code somewhere that is a gosub with a RETURN... this way, the game is paused then it is reentered where it left off...
keep on gaming...
If Quizz's Are Quizzical, Then What Are Test's?