Chaging collider position in each frame of the animation

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By arthurZ

Is that possible to changing the colliders of a player in each individual frame of the animation in godot 3? I mean reposition it. Cause my animation are bigger than 32x32 and in each frame the draw is in a different position, it’s good for animation consistency, but bad for colliders positioning.

I mean, something like fighting games that changes the colliders position every time, I just want know if godot could do that?

:bust_in_silhouette: Reply From: Jowan-Spooner

I would recommend to add an AnimationPlayer and animate your collider so that its correct each frame. Then start the animation together with the animation of your Sprite. You can set the animation to loop. Should work. For different Sprite Animations you would have to add other animations I guess. But it could be worth the effort. Good Luck