Thanks I have this all worked out, but the buttons are conflicting.
The BOB button goes to the start, (Which it should)
And so do all of the rest excluding the credit button which does what it is supposed to.
Thank you for all of the help.
Rem Project: Menu
Rem Created: Thursday, August 11, 2011
Rem ***** Main Source File *****
Start:
set text size 35
cls rgb(255,255,255) : Ink rgb(0,0,0),0
text 50,0,"Game" : wait 40
``
`
`
` 700 lines of intro (not important)
`
`
`
Buttons:
`---------------------
Bob$ = "BOB" `-
Start$ = "Start" `-
Credits$ = "Credits" `-
Leave$ = "Exit"
ReturnToButtons$ = "Return To Menu" `-
`---------------------
x1 = 300
y1 = 250
x2 = x1+text width(Bob$)
y2 = y1+text height(Bob$)
do
cls rgb(255,255,255)
Ink rgb(255,255,255),0
box x1,y1,x2,y2
Ink rgb(0,0,0),0
text x1, y1,Bob$
if mousex()=>x1 and mousex()<=x1+x2 and mousey()=>y1-y2 and mousey()<=y1+Y2
Ink rgb(255,0,0),0
if mouseclick()
Goto Start
exit
ENDIF
ENDIF
`------------------------------------------------------------------
x5 = 100
y5 = 450
x6 = x6+text width(credits$)
y6 = y6+text height(credits$)
Ink rgb(255,255,255),0
box x5,y5,x6,y6
Ink rgb(0,0,0),0
text x5, y5,Credits$
if mousex()=>x5 and mousex()<=x5+x6 and mousey()=>y5-y6 and mousey()<=y5+Y6
Ink rgb(255,0,0),0
if mouseclick()
Goto Credits
wait 400
exit
ENDIF
ENDIF
x3 = 300
y3 = 450
x4 = x3+text width(Start$)
y4 = y3+text height(Start$)
Ink rgb(255,255,255),0
box x3,y3,x4,y4
Ink rgb(0,0,0),0
text x3, y3,Start$
if mousex()=>x3 and mousex()<=x3+x4 and mousey()=>y3-y4 and mousey()<=y3+Y4
Ink rgb(255,0,0),0
if mouseclick()
wait 400
Goto Game
exit
ENDIF
ENDIF
x9 = 450
y9 = 450
x10 = x9+text width(leave$)
y10 = y9+text height(leave$)
Ink rgb(255,255,255),0
box x9,y9,x10,y10
Ink rgb(0,0,0),0
text x9, y9,leave$
if mousex()=>x9 and mousex()<=x9+x10 and mousey()=>y9-y10 and mousey()<=y9+Y10
Ink rgb(255,0,0),0
if mouseclick()
end
ENDIF
ENDIF
LOOP
Credits:
Do
cls rgb(0,0,0)
Ink rgb(255,255,255),0
text 200,150,"Games by Ricky"
Text 20,450,"Version 1.000"
x7 = 300
y7 = 450
x8 = x7+text width(ReturnToButtons$)
y8 = y7+text height(ReturnToButtons$)
Ink rgb(0,0,0),0
box x7,y7,x8,y8
Ink rgb(255,255,255),0
text x7, y7,ReturnToButtons$
if mousex()=>x7 and mousex()<=x7+x8 and mousey()=>y7-y8 and mousey()<=y7+Y8
Ink rgb(255,0,0),0
if mouseclick()
wait 400
Goto Buttons
exit
ENDIF
ENDIF
LOOP
Game:
cls rgb(255,255,255)
do
print "Test"
LOOP