extends "res://Scenes/Maps/Map.gd" func _ready(): super._ready() get_node("Areas/Alpha/Objects/Sign").connect("interacted", func(): Utilities.dialog("Alpha/alpha-sign") ) get_node("Areas/AlphaBeta06/Objects/Sign").connect("interacted", func(): Utilities.dialog("Alpha/alpha-sign") ) get_node("Areas/Beta01/Objects/Button").connect("pressed", func(): get_node("Areas/Beta01/Objects").remove_child(get_node("Areas/Beta01/Objects/Wood")) ) #get_node("Areas/Beta01/Objects").remove_child(get_node("Areas/Beta01/Objects/Wood")) get_node("Areas/Beta01/Objects/Button2").connect("pressed", func(): get_node("Areas/Beta01/Objects").remove_child(get_node("Areas/Beta01/Objects/Wood2")) ) #get_node("Areas/Beta01/Objects").remove_child(get_node("Areas/Beta01/Objects/Wood2")) get_node("Areas/Beta02/Objects/Button").connect("pressed", func(): get_node("Areas/Beta02/Objects").remove_child(get_node("Areas/Beta02/Objects/Wood")) ) #get_node("Areas/Beta02/Objects").remove_child(get_node("Areas/Beta02/Objects/Wood")) get_node("Areas/Beta02/Objects/Button2").connect("pressed", func(): get_node("Areas/Beta02/Objects").remove_child(get_node("Areas/Beta02/Objects/Wood2")) ) #get_node("Areas/Beta02/Objects").remove_child(get_node("Areas/Beta02/Objects/Wood2")) get_node("Areas/Beta01/Transitions/Height1").body_entered.connect(func(body): body.z_index = 3 if body is Player: print(body.z_index) ) get_node("Areas/Beta01/Transitions/Height1").body_exited.connect(func(body): body.z_index = 0 if body is Player: print(body.z_index) ) get_node("Areas/Beta01/Transitions/Height2").body_entered.connect(func(body): body.z_index = 5 if body is Player: print(body.z_index) ) get_node("Areas/Beta01/Transitions/Height2").body_exited.connect(func(body): body.z_index = 3 if body is Player: print(body.z_index) ) get_node("Areas/Beta02/Transitions/Height1").body_entered.connect(func(body): body.z_index = 3 if body is Player: print(body.z_index) ) get_node("Areas/Beta02/Transitions/Height1").body_exited.connect(func(body): body.z_index = 0 if body is Player: print(body.z_index) )