First of all, thanks for replying klabundee.
So I had already tried that. However, the player, when executing the command by the keyboard, finishes the grid movement, continues to execute the animation, and if I make it stop when it reaches "tempoMov = 0", the player does not perform all animations.
Did you undersand? haha. My English is not so good.
Should I create another code or family just to set up the animations?
Thanks again!
I saw that happening but it was because the movement animation was too slow.
For example, your grid movement needs 0.4 seconds to complete and your animation is set to 4 sprites per second, and you have 4 sprites on your animation, so, it will take a whole second to show the animation. If you increase the animation speed to 8, it will show the whole animation in 0.5 second.
In this example im using 16: