Godot 4.4
only the first frame of the animation plays for some reason also i do not know how to give the attacks a hitbox since the weapon is a part of the character’s base animation
Godot 4.4
only the first frame of the animation plays for some reason also i do not know how to give the attacks a hitbox since the weapon is a part of the character’s base animation
A similar question was asked a few days ago Attack animation getting cut off
For more complex interactions with animations you’d need to use an AnimationPlayer
with a Sprite2D
instead. This way you can enable/disable, move, rotate,… the CollisionShape2D
Here’s how to setup the animations in the AnimationPlayer
2D sprite animation — Godot Engine (stable) documentation in English and here’s more info about the AnimationPlayer
Introduction to the animation features — Godot Engine (stable) documentation in English