- Home /
Animatior Glitch when interrupted
What I am using:
Spriter Pro (2D Animation)
Animator Component in Unity
What is happening:
I play an animation
I play the (same) animation AGAIN before the first animation has ended
The animation plays normally BUT
at the end of the animation, it moves to where I played the animation the second time
Simplified Example:
I have an animation which moves the sprite Y from 0 to 10
I play the animation, the sprite starts to move from 0 to 10
When the sprite reaches 5, I play the same animation again
The animation plays from start normally, BUT
When the animation is completed, the sprite moves to y = 5
What I expected:
When I play the animation the second time, it will move from 0 to 10 and stay there
Adding on the my simplified example:
If I were to play the animation for the second time when the sprite is at y = 8
It will move to y=8 at the end of the animation
Same for the Rotation
To make my question clear:
Why is this happening? I need it to play the animation from start to end regardless of what it was doing previously.
These are all the relevant information I can think of. If more information is needed to answer my question, do let me know. Thanks in advance.
Side Note: I really hope that my question can be approved by the moderators this time round. If for whatever reason, the moderators feel that this is not a legitimate question, please let me know why. Do not just silently ignore my question like all my previous questions. Thanks.