Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Nophlock | |
Old Version | Published before Godot 3 was released. |
Hi,
is there a way after positioning a node with set_pos(), to immediatly check if an area overlaps with an other area? I already tried it with overlaps_area but that seems only to respond in the next frame or I’m doing something wrong ^^.
Example:
onready var my_shape = get_node("my_area2d")
onready var my_shape2= get_node("../other_node/other_area2d")
func doThing():
self.set_pos(Vector2(x,y))
if(self.my_shape.is_collding(my_shape2) == true):
#do_something