I create 2D slasher. When a player presses attack button, my main character first threaten (raise sword above the head) and then attacks. And while the hero’s doing the swing, the player can move him. Then, when the animation pass certain frame, the motion is locked and player can’t move the hero anymore.
(When the flow is going by “Ended” the motion is locked)
(How I check the animation pass certain frame. This is macro “CheckAnimEnded”)
But somehow my program pass the step of the swing. And when I press attack button, I can’t move the hero promptly.
The framerate in the flipbook is set 30 frames in second. When I set kinda 5 frames, everything works properly. How can I do this with high framerate?