I have an enemy that spews out area2ds as projectiles (toxic clouds) if they remain a child of the enemy. If I set them as a child of the main screen, they disappear (and performance takes a big hit for some reason).
var c = cloud.instance()
c.transform = $Fans.transform
var target = get_parent()
I've also tried the following to get the parent node with the same results.
var target = get_tree().get_root().get_node("MainScreen")
If I print out "target" it shows me the MainScreen node in both cases.
If I just leave the area2ds as a child of the enemy, they don't collide with the player.
Any of that make sense?