Final
This commit is contained in:
@@ -8,3 +8,7 @@ func _physics_process(_delta: float) -> void:
|
||||
linear_velocity.x = -move_speed
|
||||
if Input.is_key_pressed(KEY_RIGHT):
|
||||
linear_velocity.x = move_speed
|
||||
|
||||
func _on_body_entered(body: Node) -> void:
|
||||
if body.is_in_group("Tree"):
|
||||
get_tree().reload_current_scene()
|
||||
|
||||
Reference in New Issue
Block a user