Hi there
Here is Skeletor's code slightly modified (hope you don't mind
) so that the sprites hide when you click them:
sync on : sync rate 0 :
rem make this image sprite 1
load image "RegButton.bmp",1
sprite 1,0,0,1
rem make this image sprite 2
load image "GlowButton.bmp",2
sprite 2 ,0,0,2
rem hide the sprites off top corner of screen
hide sprite 1
hide sprite 2
menu=1
ButtonX = 260
ButtonY = 200
rem clear screen to coluor black
cls 0
do
cls
if menu=1
rem show no glow button
paste sprite 1,ButtonX,ButtonY
if mouseX() > 260 and mouseX() < 360 and MouseY() > 200 and MouseY() < 250
rem show gkow button
paste sprite 2,ButtonX,ButtonY
rem check if mouse is clicked
if MouseClick() = 1
center text 310,260, "You Clicked ME!" : menu=2
hide sprite 1
hide sprite 2
endif
endif
endif
if menu=2
set cursor 320,240 : print "YOU ARE NOW IN NEW GAME OR SOMETHING :)"
endif
sync
loop
The reason it didn't work the first time was because the
PASTE SPRITE command would undo the
HIDE SPRITE commands. All I did was put the first block of commands (from the highlighting to the mouseclicking) within a condition that states "If menu=1 then ...". Then if the user clicks, the menu variable is changed to 2 so that you enter a new screen and the sprites aren't repasted again and again ...
I have a pre-made menu system without using media. It follows the same principles as Skeletor's. I'll be happy to explain anything you don't understand
HelloWorld Tommorrow