I am trying to get a new menu to work. I got the backgrounds to load with the buttons. The problem I am having is when you click the START button on the first Menu the 2nd Menu shows but only if you hold the mouse in. If you let go of the mouse the 1st menu comes back up.
Also, once the 2nd menu loads I dont know how to disable the 2 buttons from the 1st menu (START - EXIT)
Any help would be great.
Menus Attached
Rem ***** Main Source File *****
`==== SET SCREEN RES ============
set display mode 1600,900,32
sync
`==== LOAD MENU BACKGROUNDS =====
Load Image "Menus/MAIN.bmp",1,1
Load Image "Menus/Menu.bmp",2,0
`==== LOAD MENU BUTTONS =====
Load Image "Menus/START.bmp",3,0
Load Image "Menus/EXIT.bmp",4,0
Load Image "Menus/PLAY.bmp",5,0
Load Image "Menus/STARTCLK.bmp",6,0
`===== SHOW BACKGROUND MENU 1 ===
Paste Image 1,0,0
`================================
Do
MSX=MouseX(): MSY=MouseY(): MClick=MouseClick()
Gosub MainMenuCode
Sync
loop
end
`===== MOUSE/BUTTON CLICKS ======
MainMenuCode:
Rem START Button
If MSX > 635 and MSY > 324 And MSX < 912 And MSY < 406
If MClick=1
Rem
Paste Image 6,633,308: Rem
Paste Image 2,0,0
Else
Paste Image 1,0,0: Rem MAIN MENU INAGE
Paste Image 3,633,308: Rem START BUTTON
Endif
Endif
Rem EXIT Button
If MSX > 635 and MSY > 480 And MSX < 880 And MSY < 555
If MClick=1
Rem If User Clicks EXIT, Close the Game
end
Else
Paste Image 1,0,0: Rem MAIN MENU IMAGE
Paste Image 4,633,465: Rem EXIT BUTTON
Endif
Endif
Return