Dear,
I’m using the “play_flipbook” instruction for my sprite animation, the animation is about a character swinging its sword. So when the player hits the keyboard “X” the following happen:
1- My game put can_input = false (it’s a flag to stop all input till my sprite finishes the animation)
2- I execute the animation using sprite.play_flipbook(url,id, COMPLETE_FUNCTION)
3- COMPLETE_FUNCTION: among other things, it puts can_input=true to give the user access to input again
I can see it’s working just fine!
THE PROBLEM: when I hit the “X” rapidly (nervously), the “COMPLETE_FUNCTION” is not executed after few seconds and “can_input remains false” which make me lose user input!
This is not suppose to happen because I downloaded the slasher template, and I can see it’s working even with rapid tapping on “X” keyboard
QUESTION: What am I doing wrong? (in the slasher template I couldn’t understand the code and where should I start)
Hope I made myself clear and someone can help me out
Regards
Riad