If you want to reset your variable space and you dont want to go through all your variables by hand try this.
rem Program Variables Here
if cl$()="LEVELTWO" then goto leveltwo
if cl$()="NEW GAME" then goto newgame
...
execute file "<nameofgame.exe>","LEVELTWO"
exit
What this is doing is starting a new instance of your game and quitting the old one so that all media and variables are reset - then using the command line to tell your program where to jump too.
Failing that you can clear all media with a routine similar too:
for clear=1 to 65535
if object exist(clear) then delete object clear
if image exist(clear) then delete image clear
if sprite exist(clear) then delete sprite clear
if sound exist(clear) then delete sound clear
if music exist(clear) then delete music clear
next clear
However this would require you to reset all of your variables by hand.
Pneumatic Dryll
