My character for some reason can't jump

Godot Version

Question

this is the code

try this:

if Input.is_action_pressed("ui_accept"):
	velocity.y += 150

if !is_on_floor():
	velocity.y -= gravity

IT WORKED!

thanks you so much bro

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