I have made a menu with buttons and cannot get them to link to my main game. I have the coordenets of the button, but i am confused where to input them.
`THE MENU--------------------------------------------------
Set Display Mode 800,600,32
`Load All Media---------------------------------------------
Load image "Background.bmp",1
Load image "New_Game.bmp",2
Load image "Enter_Password.bmp",3
Load image "How_To_Play.bmp",4
Load image "Quit.bmp",5
`-----------------------------------------------------------
sync on
sync rate 40
Paste image 1,0,0
`Main Loop--------------------------------------------------
do
Paste image 2,50,275
Paste image 3,50,375
Paste image 4,50,475
Paste image 5,650,500
MX=MouseX(): MY=MouseY(): MC=MouseClick()
`If MX>3.01 and MY>16.87 and MX<17.08 and MY<19.94 and MC=1
goto Maingame
endif
`New Game----
Maingame:
sync
loop
Set display mode 800,600,32
Sync on
Sync rate 40
`Create Objects--------------------------
Make object Box 1,1,1,7
Make Object Sphere 2,1
`-----------------------------------------
Color Object 1, RGB(40,155,70)
Color object 2, RGB(246,238,7)
Turn object left 1,88
`----------------------------------------
Do
Position Object 1,0,-20, Playerpos#
Position Camera 1,20,20
Point Camera 0,0,0
if rightkey()=1 then playerpos#=playerpos#+1
Sync
Loop
`----------------------------------------
the top left= x:3.01, y:16.87
The top right= x:17.08, y:16.87
bottom left= x:3.01, y:19.94
bottom right= x:17.08, y:19.94
Can someone help plz?
PS I have not finished all the code yet, still needs alot of work doing such as Moving left and right, moving the sphere so it changes direction when it hits the edge ect...