diff --git a/Player.gd b/Player.gd index 11c94b3..1529365 100644 --- a/Player.gd +++ b/Player.gd @@ -3,16 +3,19 @@ extends KinematicBody var velocity = Vector3() func _ready(): - # Called every time the node is added to the scene. - # Initialization here - pass + print("player init") func _physics_process(delta): var direction = Vector3() -# if Input.is_action_pressed("movement_forward"): + if Input.is_action_pressed("ui_up"): + print("Onward!") + self.translate(Vector3(0, 0, 1)) + if Input.is_action_pressed("ui_down"): + print("not so onward...") + self.translate(Vector3(0, 0, -1)) -#func _process(delta): -# # Called every frame. Delta is time since last frame. -# # Update game logic here. -# pass \ No newline at end of file +func _process(delta): + # Called every frame. Delta is time since last frame. + # Update game logic here. + pass