mirror of
				https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
				synced 2025-11-04 08:35:41 +00:00 
			
		
		
		
	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
		
			
				
	
	
		
			15 lines
		
	
	
		
			401 B
		
	
	
	
		
			GDScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			401 B
		
	
	
	
		
			GDScript
		
	
	
	
	
	
class_name CoinHeavenWarpPoint
 | 
						|
extends Node2D
 | 
						|
 | 
						|
@export_file("*.tscn") var heaven_scene := ""
 | 
						|
 | 
						|
func _ready() -> void:
 | 
						|
	Level.vine_warp_level = heaven_scene
 | 
						|
	if Level.in_vine_level:
 | 
						|
		Level.in_vine_level = false
 | 
						|
		if 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()
 |