When the mouse enters a button the image must change.
when the mouse leaves the button the original button must come back.
With my code it won't work, what is wrong with the code?
Rem ***** Main Source File *****
set display mode 1024,768,32
sync on
Menu()
do
if mousex()>=590 and mousex()<=990 and mousey()>=130 and mousey()<=226
paste image 6,590,130
endif
if mousex()<=590 and mousex()>=990 and mousey()=<130 and mousey()>=226
paste image 1,590,130
endif
sync
loop
function Menu
load bitmap "imagesmenu.png",0
load image "buttonsnew_up.png",1
paste image 1,590,130
load image "buttonsload_Up.png",2
paste image 2,590,258
load image "buttonshiscore_Up.png",3
paste image 3,590,386
load image "buttonsoptions_Up.png",4
paste image 4,590,514
load image "buttonsclose_Up.png",5
paste image 5,590,642
`buttons down
load image "buttonsnew_down.png",6
load image "buttonsload_down.png",7
load image "buttonshiscore_down.png",8
load image "buttonsoptions_down.png",9
load image "buttonsclose_down.png",10
endfunction