Hi, I have an Area2D node (working on a user placement system for a building game) and I’m trying to implement placement validation. In other words, I want the tile to detect if the mouse is hovering over an existing tile or not.
I added a CollisionShape2Dthen attached a script to the Area2D. Connected an on_body_enteredsignal.
func _on_body_entered(body: Area2D) -> void:
%CropsContainer.visible = false
However I don’t think the code below is executing. I looked online and it seems like this is all you need based on what I read.