Android AndEngine Button Remains highlighted
Question
I am using andengine
and I have some sprites that change color when pressed.
On Action_Down
I use the changeColor
method and on ActionUp
I turn it back to normal.
The problem with this is that when I press my button/sprite it changes color and when I move my finger outside the object and take it up it no longer goes into the Action_Up
case.
Is there an easy way to fix this ?
Solution
use the Action_Move case and test for when the finger moves off the button and do the same action you do in Action_Up
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow