From 0a2c8211fda6871c91836a830836968ee2a2e988 Mon Sep 17 00:00:00 2001 From: Gregory Marco Date: Sun, 18 Oct 2026 20:34:31 -0500 Subject: [PATCH] Fix teleporting from teleportals that are nested in a node, by using global position rather than relative position. --- teleporter.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleporter.gd b/teleporter.gd index 010e63d..c243711 100644 --- a/teleporter.gd +++ b/teleporter.gd @@ -35,7 +35,7 @@ func _on_contact(body) -> void: %Player2D.get_node("Camera2D").position_smoothing_enabled = false if %Player2D.teleport_cooldown > 0: return - body.set_position(teleporter.get_position()) + body.set_position(teleporter.global_position) %Player2D.on_teleport() disable() await get_tree().create_timer(cooldown).timeout