Player Movement with AnimatedSprite3D and Kinematic Body

Godot Version

v3.3.2.stable.official

Question

I want to be able to move an Animated Sprite with a Kinematic Body as a child with keyboard and controller input. When I run the game, the character just hangs in the air without any sense of gravity or movement. How would I go about doing this with the given code? I'm pretty new to the engine so any advice is greatly appreciated!

I think you just forgot to use the move_and_slide function like this:

velocity = move_and_slide(velocity)

Thank you for that!

1 Like

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