diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-05-03 13:59:15 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-05-03 13:59:15 +0200 |
commit | 8c0e8b5bf73caaf2fd6f04fb97b9c13f2970c431 (patch) | |
tree | 990b6e09eb2f6b3cb494cca17726ceae1bc7891f /Scenes/Maps/World3.gd | |
parent | 516d22c1737a9c94026b5ff0c9856bc5549aa416 (diff) |
update
Diffstat (limited to 'Scenes/Maps/World3.gd')
-rw-r--r-- | Scenes/Maps/World3.gd | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Scenes/Maps/World3.gd b/Scenes/Maps/World3.gd index ad92435..d9e8399 100644 --- a/Scenes/Maps/World3.gd +++ b/Scenes/Maps/World3.gd @@ -14,13 +14,48 @@ func _ready(): 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) + ) |