feat: add a secret wall on a separate layer with toggleable visibility and collision;

This commit is contained in:
2026-09-20 15:28:39 +02:00
parent 15bac3c653
commit c429e2c461
4 changed files with 17 additions and 4 deletions
File diff suppressed because one or more lines are too long
+8
View File
@@ -0,0 +1,8 @@
extends TileMapLayer
func _ready() -> void:
disable_secret_door()
func disable_secret_door():
visible = false
collision_enabled = false
@@ -0,0 +1 @@
uid://dma58qu1o08h7
-2
View File
@@ -51,10 +51,8 @@ func push_blocks():
func _on_area_2d_body_entered(body: Node2D) -> void:
if body.is_in_group("interactable"):
body.can_interact = true
print("Able to intreact!")
func _on_area_2d_body_exited(body: Node2D) -> void:
if body.is_in_group("interactable"):
body.can_interact = false
print("Left interactable!")