I am trying to rotate a sword hitbox around the player depending on which animation is currently playing.
I have the following node setup:
Scene
|---AnimationPlayer
|---Marker2D
.....|---Area2D
..........|---CollisionShape2D
The CollisionShape2D is for the shape of the hitbox. The Marker 2D is centred on the player, and I want to use its rotation property to rotate the hitbox around the player.
So I go to my AnimationPlayer node, select an animation and key the rotation property at the start of the animation.
The issue is that once I have keyed rotation to the first animation, the rotation property becomes "locked" and I cannot change its value anymore.
Is this intended behaviour and I am missing something obvious? Or is this a bug?
I am using Godot version 4.0.beta16