+1 vote

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?

in Engine by (181 points)

1 Answer

+2 votes
Best answer

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

by (862 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.