mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
14 lines
394 B
GDScript
14 lines
394 B
GDScript
class_name CoinHeavenWarpPoint
|
|
extends Node2D
|
|
|
|
@export_file("*.tscn") var heaven_scene := ""
|
|
|
|
func _ready() -> void:
|
|
Level.vine_warp_level = heaven_scene
|
|
Level.in_vine_level = false
|
|
if Level.in_vine_level and PipeArea.exiting_pipe_id == -1:
|
|
for i in get_tree().get_nodes_in_group("Players"):
|
|
i.global_position = global_position
|
|
i.reset_physics_interpolation()
|
|
i.recenter_camera()
|