platformerNavigation/Characters/Controller.gd

7 lines
178 B
GDScript3
Raw Permalink Normal View History

2024-03-11 12:41:54 +00:00
extends Node
func _process(delta):
var direction = Input.get_axis("MoveLeft", "MoveRight")
get_parent().move(direction)
get_parent().jump(Input.is_action_pressed("Jump"))