If you just want to detect which frame is the current frame,
AnimatedSprite has a
frame property and a
frame_changed() signal. If you actually want to get the data from the frame, you must call
get_frame() on the
SpriteFrames) property of the
If you want to deal damage at a specific frame, it may be easier to use an
AnimationPlayer and call the function to deal damage in the animation track instead.