I resolved this problem for a while, then i tried getting fancy and tried setting up a menu using sprites. I think my problem now is in the sprite collision though.
I noticed the test doesn't write on top of the sprites unless i use paste sprite in place of these sprite statements. neither way seems to work with collision though. as far as i can tell I am doing what needs to be done but clearly i have done something wrong.
[/code]
UseMainMenu:
if spacekey()=1 then CloseMainMenu=CloseMainMenu+1
if CloseMainMenu=30
CloseMainMenu=0
MainMenuActive=0
Endif
sprite 2,350,30,101
sprite 3,405,75,102
sprite 4,405,115,102
sprite 5,405,195,102
sprite 6,405,265,102
sprite 7,405,335,102
sprite 8,405,405,102
sprite 1,mousex(),mousey(),103
if GameMode$="Bunker" then GameModeSwitch$="BATTLEFIELD"
if GameMode$="Battlefield" then GameModeSwitch$="BUNKER"
center text 477,72,"NEW GAME"
center text 477,142,"LOAD GAME"
center text 477,212,"SAVE GAME"
center text 477,292,GameModeSwitch$
center text 477,362,"DESIGN"
center text 477,432,"QUIT GAME"
if mouseclick()=1
GameModeClicked=sprite collision(1,6)
QuitGameClicked=sprite collision(1,8)
if GameModeClicked=1
GameModeClickedDetector=GameModeClickedDetector+1
GameModeClicked=0
MainMenuActive=0
Select GameMode$:
Case "Bunker"
GameMode$="Battlefield"
Endcase
Case "Battlefield"
GameMode$="Bunker"
Endcase
Endselect
Endif
if QuitGameClicked=1
QuitGameClicked=0
MainMenuActive=0
Exit
Endif
Endif
return[code]
Wandering the digital world in search of knowledge for 22 years... you would think I might have found something useful by now.