try this, its traight from my game... you'll have to insert the images yourself...
REMSTART
----------- MENU STARTS HERE ---------------
REMEND
set window on
hide window
SET WINDOW LAYOUT 0,0,0
SET WINDOW SIZE 476,476
SET WINDOW POSITION 100,100
SET DISPLAY MODE 476,476,32
rem these previous values are used cos that is the size of my menu interface.
LOAD IMAGE "images\menu.png",1
Load Image "images\play_over.png",2
Load Image "images\options_over.png",3
Load Image "images\about_over.png",4
Load Image "images\exit_over.png",5
rem these, set the sprites and makes sure they are off the screen.
SPRITE 2,500,500,2
SPRITE 3,500,500,3
SPRITE 4,500,500,4
SPRITE 5,500,500,5
PASTE IMAGE 1,0,0,1
show window
sync on
sync rate 70
do
rem play button
if mousex() >= 161 and mousex() <= 261 and mousey() >= 234 and mousey() <= 257
rem this moves the over effect sprite over the button.
SPRITE 2,161,234,2
if mouseclick() = 1
goto main
endif
else
SPRITE 2,500,500,2
endif
rem options button
if mousex() >= 283 and mousex() <= 383 and mousey() >= 234 and mousey() <= 257
SPRITE 3,283,234,3
if mouseclick() = 1
print "Options are not as yet available"
endif
else
SPRITE 3,500,500,3
endif
rem about button
if mousex() >= 161 and mousex() <= 261 and mousey() >= 276 and mousey() <= 299
SPRITE 4,161,276,4
if mouseclick() = 1
print "About is not as yet available"
endif
else
SPRITE 4,500,500,4
endif
rem exit button
if mousex() >= 283 and mousex() <= 383 and mousey() >= 276 and mousey() <= 299
SPRITE 5,283,276,5
if mouseclick() = 1
end
endif
else
SPRITE 5,500,500,5
endif
sync
loop
REMSTART
----------- MENU ENDS HERE ---------------
REMEND
REMSTART
----------- MAIN PROGRAM STARTS HERE ---------------
REMEND
main:
rem insert your main program here
end
Hope that helps... you'll also need to change all of the sizes and mousex() and mousey() values to suit your interface... mine was just a simple one in Photoshop.
these are the pics:




oh, and you should be able to run this code completely independent of anything after the
REMSTART
----------- MAIN PROGRAM STARTS HERE ---------------
REMEND
thats just where it should go...
Hope i helped...
If Quizz's Are Quizzical, Then What Are Test's?