Syncing sprites with collusion shape

Godot Version

v4.3.stable.official [77dcf97d8]

Question

Hi everyone,

I’m currently working on a 2D project in Godot where I have a CharacterBody2D with a sprite that has multiple animated child sprites. While I successfully animated the character’s body parts using an AnimationPlayer, I encountered an issue with the collision shape.

Problem: I initially placed a CollisionShape2D as a child of the CharacterBody2D, but since the sprite’s animation changes its appearance significantly, adjusting the collision shape manually for every movement looks unresponsive but i can’t make the collusion shape a child of the sprites because the character body throws an error.

I was able to avoid this by syncing the position of the collusion shape with the sprites, But What if it was a character with a complex shape (like a human), managing multiple collision shapes sounds unresponsive.
I’m not saying there’s anything wrong with it but it just sounds unresponsive and tedious…

Thanks for future help <3

The animationplayer should be able to do this fairly easy