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
-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!")