Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Button Hover Function

Author
Message
tonycrew
14
Years of Service
User Offline
Joined: 8th Jan 2010
Location:
Posted: 6th Mar 2010 17:33
Hello, I have this and I made my very own function for the hover..



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
tonycrew
14
Years of Service
User Offline
Joined: 8th Jan 2010
Location:
Posted: 6th Mar 2010 17:49
Figured it out! Sorry forgot to do the Y Coords.

FPS Creator Updated 116,Vista 32Bit UpTo Date, nVidea 8500 1Gig Graphics Card, 4 Gig DDR2 Ram, Intel Duel Core 3GHZ CPU
luskos
17
Years of Service
User Offline
Joined: 28th Jun 2007
Location:
Posted: 8th Mar 2010 02:03
You can also use animated sprite for this and make a function to watch if mouse is over the sprite, if it is then play 2nd frame else, play 1st frame.

Where there is a will, there is a way.

Login to post a reply

Server time is: 2024-09-28 14:30:01
Your offset time is: 2024-09-28 14:30:01