Files
BeastBound/scripts/playerscript.gd

8 lines
192 B
GDScript

extends CharacterBody2D
func _physics_process(delta):
var direction = Input.get_vector("move_left", "move_right", "move_up", "move_down")
velocity = direction * 200
move_and_slide()
pass