Answers for "how to lock a games fps godot"

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