diff --git a/player_2d.gd b/player_2d.gd index 4564480..3f1ad16 100644 --- a/player_2d.gd +++ b/player_2d.gd @@ -17,7 +17,9 @@ var dashes = 1 var dashing = false var death_threshold = 2000 var coins = 0 + var spawn_point +var last_ground_point var data_disks = [] var objectives = {} @@ -120,6 +122,10 @@ func _process(delta: float) -> void: if Input.is_action_just_released("restart") or (Input.is_action_pressed("controller_restart_left") and Input.is_action_pressed("controller_restart_right")): get_tree().reload_current_scene() + if is_on_floor(): + last_ground_point = global_position + #spawn_point = last_ground_point + if %OldComputer.visible: if Input.is_action_just_released("interact") or Input.is_action_just_released("jump"): %OldComputer.close()