I'm having a surprisingly hard time trying to do what I see as a simple task. I need to spawn in a node (loot) around when another node (enemy or chest) is destroyed.
The only way I can think to do this is with add.child but that doesn't seem to be working.
I've tried different variations of
onready var coins = get_node("/root/MainScene/Coins")
to no avail. Any ideas?