feat: add a secret wall on a separate layer with toggleable visibility and collision;
This commit is contained in:
@@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user