From 890541465bfe2c476b5fbab5d3dcf62b55342006 Mon Sep 17 00:00:00 2001 From: Gregory Marco Date: Sun, 18 Oct 2026 03:21:33 -0500 Subject: [PATCH] Record last known ground position. Idea is that when you die you drop the disks at the last place you stood. Doesn't seem to be reliable so I'm not using it at the moment; --- player_2d.gd | 6 ++++++ 1 file changed, 6 insertions(+) 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()