I want my Area2D node to detect if it is overlapping with any other Area2D (across scenes) in every frame. Here is my code -
extends Area2D
var invalid = false
func _process(delta: float) -> void:
if overlaps_area(**problem**):
invalid = true
What do I put inside overlaps_area()
?
What is the expected argument type?
The documentation Area2D area
doesn't work. What else do I have to do?
Thank you and Sorry.