Answers for "godot lock framerate"

1

godot fps locked to jumping

GDScript

Use :

if not is_on_floor():
	skittles.y -= gravity * delta
	move_and_slide(skittles, Vector3.UP)
    
Instaid of:

if not is_on_floor():
	move_and_slide(skittles, Vector3.UP)
	skittles.y -= gravity
Posted by: Guest on September-26-2020

Browse Popular Code Answers by Language