Compare commits

..
2 Commits
Author SHA1 Message Date
Debugman 66f6906bfd Merge branch 'main' of http://git.nanoyagi.com/NanoYagi/JumpRopeOldTech 2026-10-16 22:11:01 -05:00
Debugman 4f73b744d1 Update 2026-10-16 22:10:53 -05:00
3 changed files with 13 additions and 2 deletions

No files matched your search

+5 -1
View File
@@ -20,8 +20,12 @@ func refresh_jump(new_jumps):
jumps = new_jumps
else:
jumps = 1
teleport_cooldown = 0
refresh_teleport()
func refresh_teleport():
teleport_cooldown = 0
get_tree().call_group("TELEPORTERS","enable")
func on_teleport():
refresh_jump(1)
teleport_cooldown = 1
+7 -1
View File
@@ -11,6 +11,12 @@ func check_for_pair() -> String:
print(paired_teleporter)
return paired_teleporter
func disable():
$Sprite2D.modulate = Color.DARK_ORANGE
func enable():
$Sprite2D.modulate = Color.WHITE
func _process(delta: float) -> void:
pass
@@ -19,7 +25,7 @@ func _physics_process(delta: float) -> void:
func _on_contact(body) -> void:
#print("PASSED OVER TELEPORTER")
#get_tree().call_group("TELEPORTERS","check_for_pair")
get_tree().call_group("TELEPORTERS","disable")
for teleporter in get_tree().get_nodes_in_group("TELEPORTERS"):
if teleporter != self:
if teleporter.paired_teleporter == paired_teleporter and %Player2D.teleport_cooldown == 0:
+1
View File
@@ -18,6 +18,7 @@ scale = Vector2(1, 1.0155824)
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1982310971]
[node name="RichTextLabel" type="RichTextLabel" parent="CanvasLayer" unique_id=63102975]
visible = false
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0