Game Development Community

Changing button image when mouse is over

by Abelmon Bastos · in Torque Game Engine · 02/28/2007 (12:59 pm) · 1 replies

It's very simple, but I'm newbie :-(.
How to make the background's image of the button changing when the player locates the cursor of mouse on the button?

Thank u

#1
02/28/2007 (1:37 pm)
You should have 4 images for one button:

button_d.png (button down image)
button_h.pong (hovered over image)
button_i.png (no hover, not down)
button_n.png (button up, I think)

Then when you assign the bitmap in the GUIEditor, just assign "button".