#How can I make the hitbox disable on specific frames
1 messages · Page 1 of 1 (latest)
Are you using AnimatedSprite2D or AnimationPlayer?
If you're using AnimatedSprite2D you can use a signal
extends AnimatedSprite2D
func _ready():
frame_changed.connect(_on_frame_changed)
func _on_frame_changed():
if frame == 3:
my_callable()
func my_callable():
print("Frame 3 reached!")
If you're using AnimationPlayer you can hook into the Call Method Track at the frame you want to trigger the action