Teleporter fixes

This commit is contained in:
Debugman committed 2026-10-16 22:43:48 -05:00
1 parent 66f6906bfd
commit 6d84b7a5fb
3 files changed
+14 -9

No files matched your search

+2 -5
View File
@@ -20,16 +20,13 @@ func refresh_jump(new_jumps):
jumps = new_jumps
else:
jumps = 1
refresh_teleport()
func refresh_teleport():
teleport_cooldown = 0
get_tree().call_group("TELEPORTERS","enable")
func on_teleport():
refresh_jump(1)
teleport_cooldown = 1
$Camera2D.position_smoothing_enabled = true
await get_tree().create_timer(1).timeout
teleport_cooldown = 0
func _process(delta: float) -> void:
if Input.is_action_just_pressed("jump"):