Gravity and Animation Not Working

Godot Version 4.3

Hello, I was working on animation control for my player character and when I started a test window, the gravity wasn’t working as they we’re stuck in the air with the last frame of their jumping animation. Is their something I did wrong (most likely because im very new too the engine) or is this an engine glitch?

FormHelpImage-2

I believe unless it is a rigid body you need to apply gravity to the body.

if not is_on_floor():
velocity.y += gravity * delta

1 Like