IOS Animation Sticking

vodkaman6661

  • Posts: 121
Hi all

I have put together some test code for a project that I am working on. The actor switches between its on and off  animation when touched. The actor also changes animation when touch is held down followed by a variable that is incremented to represent time.Which is reset once the player releases the touch.

All of this works fine apart from one small bug.

If the player taps the left or bottom of the actor just outside of its collision area the actor will become locked in the "hold animation" and the variable will continue to increment until the player taps again. Note that this works fine when testing in flash but not IOS.

Thank you for an help :)