Files
Super-Mario-Bros.-Remastere…/Scripts/Parts/EditorVisibleNode.gd

9 lines
196 B
GDScript

extends Node2D
func _ready() -> void:
update()
func update() -> void:
visible = (!LevelEditor.playing_level and Global.current_game_mode == Global.GameMode.LEVEL_EDITOR) or Global.debug_mode