Hello, I have this and I made my very own function for the hover..
do
processButton(3,2,5,2,50,120) //Function Call
loop
function processButton(spr, sprX, btnX, btnY, btnH, btnW)
if mousex() >= btnX and mousex() <= btnX + btnW
if mousey() >= btnY and mousey() <= btnY + btnH
show sprite spr
hide sprite sprX
else
show sprite spr
hide sprite sprX
endif
endif
endfunction
Load image "cookbook.png",2
Load image "cookbook_hover.png",3
Load image "stockbook.png",4
Load image "stockbook_hover.png",5
sprite 2,5,2,2
sprite 3,5,2,3
sprite 4,175,2,4
sprite 5,175,2,5
hide sprite 2
hide sprite 3
hide sprite 4
hide sprite 5
The (spr) is the new sprite to show, the (sprX) is the sprite to hide, The (btnX) is the buttons X position.. The (btnY) is the buttons Y position, The (btnH) is the buttons Height, The (btnW) is the buttons width.
The problem is, When we debug it, It works but when we are about 100 px underneath it it does it still.
FPS Creator Updated 116,Vista 32Bit UpTo Date, nVidea 8500 1Gig Graphics Card, 4 Gig DDR2 Ram, Intel Duel Core 3GHZ CPU