Hello. I make a game. My character can hit. But when he play the hit animation, I need all the presses not to be counted. How can I do it?
Release input focus or set a flag in self and while it is set you ignore all input. Acquire input or clear the flag using a timer.
2 Likes
The second one will be more easy.
When you play your animation, set self.playing to true.
In your on message function when you receive an animation done message. Set self.playing to false.
In your on input.
If self.playing then
return
end
this will do the trick.
Thank you. It helps me.