Game Development Community

Scaling Buttons on MouseOver

by Orion the Hunter · in Torque Game Builder · 11/06/2012 (7:45 am) · 4 replies

Hello,

Happy election day!
I was wondering if I could make it so that when the mouse hovers over any button, the button will slightly grow, like in the BlackJack demo.

I've tried various venues on TDN and even examined the BlackJack game's source, but there is nothing quite like it on TDN and I can't make heads or tails of the scripts in the game's files.

Any help is appreciated! Thanks.

#1
11/06/2012 (9:10 am)
I don't have TGB so I don't know if there is a "glow border" or something like that, but you could simply swap the button image out with a button image that has a glow, or make an image with the glow and show it when hovering over the button.
#2
11/06/2012 (3:46 pm)
TGB already has a function like that, but what i wanted is for it to be more smooth. Like a couple frames, not just two. In the BlackJack example, it has a Gui Behavior. I don't know how to implement this in anything else...
#3
11/06/2012 (4:07 pm)
Have a look at this www.garagegames.com/community/forums/viewthread/131761

Some very nice people helped me to understand scaling.
#4
11/08/2012 (11:15 am)
Well, I'm referring more to gui buttons. Do you know how to do that?