Animation not working properly / Animation pushing my player back-not looping correctly

Godot 4.3

Hey all! I hope you are all doing good!

I’m having a problem with my animations and i can’t figure it out where is the mistake. The thing is that my animation,when finish,keeps “pushing me back”,like when it end’s, it goes back to start,i doesn’t loop. I have tried with loop on and nothing,also with loop off as well,but still nothing. I’ll attach a video so you can watch it properly.

Hope someone can help me with it and i’am really sorry if this is something that maybe i’m not paying attention to,i’m still quite new to Godot / Programming in general haha.

Thanks and hope you all have an amazing day!

Your animation shouldn’t actually move the model away from it’s origin point, that’s what your script is for. I’ve seen people give mixamo skeletons another root bone to counter act this sliding movement.

Hey Gertkeno! Thanks for replying.

Maybe i wansn’t clear with what i say or i don’t understand what you are talking haha. Me character moves by code,when i press the action key needed it start the animation. However,for example when moving forward (w), it reaches the endpoint of the animation and that’s when it “pushes me back”.

I don’t know if it make sense.!

Thanks!!

Your animation also moves the player model forward right? If you go into the player scene and only play the animation, they do walk forward, not walk in-place. That is the issue, your code should be the only thing moving the player forward, not the animation.

You are an absolute GENIUS!! All i have to do was disable the “spine bone” on the animation player,that was making the character move forward as you said!

I can’t thank you enough hahaha!!!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.