• Godot Help
  • is_on_floor() always false, how can i fix??


it is never able to jump again how can i fix it

  • You should use one variable for the velocity, here you call it movement. You should only call move_and_slide once per frame. Usually at the end of the function, do all your logic first. When is_on_floor is false, set movement.y to 0.0, don't change the direction or move it up.

    movement = move_and_slide(movement, UP)

You should use one variable for the velocity, here you call it movement. You should only call move_and_slide once per frame. Usually at the end of the function, do all your logic first. When is_on_floor is false, set movement.y to 0.0, don't change the direction or move it up.

movement = move_and_slide(movement, UP)