From 9e5a51839f2283365525892f4c37d41eea1a9557 Mon Sep 17 00:00:00 2001 From: Gabriella Date: Tue, 21 Oct 2025 11:32:22 -0600 Subject: [PATCH] bugfix: adjust 'limits' on upper/lower X value to be dynamic, rather than static --- src/empty_space_thing.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/empty_space_thing.gd b/src/empty_space_thing.gd index 9ea32c4..9534b06 100644 --- a/src/empty_space_thing.gd +++ b/src/empty_space_thing.gd @@ -67,7 +67,7 @@ func _process(delta: float) -> void: if bounce: velocity = -(velocity)/2 print("velocity negated, bouncing") - global_position.x = 999 + global_position.x = max_x - 1 time_since_first_location = -1 draggable = true return @@ -76,7 +76,7 @@ func _process(delta: float) -> void: if bounce: velocity = -(velocity)/2 print("velocity negated, bouncing") - global_position.x = 1 + global_position.x = min_x + 1 time_since_first_location = -1 draggable = true return