Coin Heaven Warps Player to The Right Spot

Tweaks the code a bit for the Coin Heaven Warping so the Player isn't sent back to the beginning and to where the exit is
This commit is contained in:
KirbyKidJ
2025-09-19 14:22:53 -07:00
parent 6c11b95570
commit f3546da459

View File

@@ -5,8 +5,9 @@ extends Node2D
func _ready() -> void: func _ready() -> void:
Level.vine_warp_level = heaven_scene Level.vine_warp_level = heaven_scene
if Level.in_vine_level:
Level.in_vine_level = false Level.in_vine_level = false
if Level.in_vine_level and PipeArea.exiting_pipe_id == -1: if PipeArea.exiting_pipe_id == -1:
for i in get_tree().get_nodes_in_group("Players"): for i in get_tree().get_nodes_in_group("Players"):
i.global_position = global_position i.global_position = global_position
i.reset_physics_interpolation() i.reset_physics_interpolation()