extends Area2D class_name BridgeArea func _on_body_entered(_body: Node2D) -> void: if _body is BaseCharacter: _body.update_collision_layer_mask("in") print("entered!") func _on_body_exited(_body: Node2D) -> void: if _body is BaseCharacter: _body.update_collision_layer_mask("out") print("exited!")