I am trying to implement an enemy attack in my 2d plat-former but i only want the player to get hit when the attack animation reaches a certain frame. You better not tell me to use an Animation player cause if i start using one, i would have to make a LOT of changes which i don't wanna make. How can i check what is the current frame of an animation in a Animated-Sprite?
Is there a way to check the current frame of an animation in a animated sprite?
Yes, it is called "frame". It gives you the frame number (starting at 0) for the current animation. You can always check the documentation if you want to find something. https://docs.godotengine.org/en/stable/classes/class_animatedsprite.html
10 months later
Megalomaniak added the Godot Help tag .