Game Development Community

Bug: Sticky BitmapButtonCtrl

by Shawn Simas · in iTorque 2D · 10/07/2010 (10:52 pm) · 3 replies

I'm having an issue (across all device types) with BitmapButtons 'sticking'.

What happens is sometimes when pressed, they will stay in the depressed state and not call the event until tapped again.

Anyone else having this problem?
Anyone know a fix?

Thanks,
Shawn

#1
10/08/2010 (8:28 pm)
Shawn, it's a problem. Happens all the time in our games. I think that what is happening is Torque is going into a "hover" state for the button. We get round it by making sure that the "_h" bitmap is the same as the button bitmap. Still doesn't solve the problem though. Also, we have a sound that is made for pressed buttons - it's feedback to the user that they did *actually* trigger a button press.
#2
10/08/2010 (8:30 pm)
Hover state defaults to the default button image when the _h one isn't present, so I don't believe that is the problem.

I have a sound as well, but it only triggers on the button event, which isn't being called when this happens.
#3
10/08/2010 (8:37 pm)
In which case you wont see the hover, but I think this is what is happening. Make a hover image and you will see that sometimes you press the button and nothing happens but you will see the hover state showing.