CoinHeavenWarpPoint.gd 395 B

12345678910111213
  1. class_name CoinHeavenWarpPoint
  2. extends Node2D
  3. @export_file("*.tscn") var heaven_scene := ""
  4. func _ready() -> void:
  5. Level.vine_warp_level = heaven_scene
  6. if Level.in_vine_level and PipeArea.exiting_pipe_id == -1:
  7. Level.in_vine_level = false
  8. for i in get_tree().get_nodes_in_group("Players"):
  9. i.global_position = global_position
  10. i.reset_physics_interpolation()
  11. i.recenter_camera()