#Character can't move right
1 messages · Page 1 of 1 (latest)
we're going to need some code to actually help
Func _process (delta):
if Input.is_action_pressed("ui_right"):
velocity.x = +1
If Input.is_action_pressed("ui_left"):
velocity.x = -1
move_and_slide(velocity * speed)
The move and slide usually goes in physics process
Assuming you're on Godot 4, move_and_slide does not require any parameters. It should work in _process, but physics_process is prefered.