mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
Special Castle in Level Editor
This PR changes the End Final Castle to use the Special visuals when the level is in the SMBS campaign. This is primarily for the Level Editor / Custom Levels and isn't really necessary for the main campaigns. Hence the added check to see if the Level Editor is used.
This commit is contained in:
@@ -32,6 +32,10 @@ func update_cam_limit() -> void:
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
$Overlay.modulate.a = int($SmallCastleVisual.use_sprite == false)
|
||||
if Global.level_editor != null && scene_file_path == "res://Scenes/Prefabs/LevelObjects/EndFinalCastle.tscn":
|
||||
var is_smbs: bool = Global.current_campaign == "SMBS"
|
||||
$SmallCastleVisual.visible = !is_smbs
|
||||
$SmallCastleVisual2.visible = is_smbs
|
||||
if get_node_or_null("Wall") != null:
|
||||
%Wall.visible = show_walls
|
||||
|
||||
|
Reference in New Issue
Block a user