set text size 12
text 1,450, "Made By (Team or Author)"
do
newgame = TextButton(1, 300, "New Game")
loadgame = TextButton(1, 320, "Load Game")
options = TextButton(1, 340, "Options")
check4updates = TextButton(1, 360, "Check For Updates")
exitprog = TextButton(1, 380, "Exit")
if mouseclick() = 1
if newgame = 1 then gosub _new_game
if loadgame = 1 then gosub _load_game
if options = 1 then gosub _options
if check4updates = 1 then gosub _chk_4_updates
if exitprog = 1 then end
endif
loop
function TextButton(x, y, text$)
textlength = text width(text$)
textheight = text height(text$)
if mousex() > x and mousex() < x + textlength and mousey() > y and mousey() < y + textheight
onmouse = 1 : currentcol = rgb(255, 0, 0)
else
onmouse = 0 : currentcol = rgb(255, 255, 255)
endif
ink currentcol, 0
text x, y, text$
endfunction onmouse
Rem MenuLinks::::::::::::.........
`New Game
_new_game:
cls
do
sync
set text size 20
center text 320,20, "Title Here"
loop
`Load Game
_load_game:
cls
do
sync
set text size 20
center text 320,20, "Title Here"
loop
`Options
_options:
cls
do
sync
set text size 20
center text 320,20, "Title Here"
loop
_chk_4_updates:
cls
do
sync
Text 310,240, "Loading"
Wait 1000
Text 310,240, "Loading."
Wait 1000
Text 310,240, "Loading.."
Wait 1000
Text 310,240, "Loading..."
Wait 1000
Text 310,240, "Loading...."
Wait 1000
Text 310,260, "No Updates Found!"
center text 320,450, "Press Esc To Go Back"
loop
I have manged to do this guys!!! with your help!!
but how do i go back with a specific Key?
(check out the check updates section)
When there is a will.....theres a way!!!