How do I know which animation is playing animation player 1

How do I know which animation is playing animation player

if Animation.current_animation == "name of animation"

Here is what the above code is Doing:
1. It’s checking if the current animation is the one we want to check.
2. If it is, it’s checking if the current frame is the one we want to check.
3. If it is, it’s checking if the current frame is the last frame.
4. If it is, it’s checking if the animation is looping.
5. If it is, it’s setting the current frame to the first frame.
6. If it isn’t, it’s setting the current animation to the default animation.

Similar Posts