Hi Godot masters! I am rather new to gamedev but very enthusiastic. Ran into a little snag trying to instance and addchild. I am getting the error: Invalid type in function 'addchild' in base 'Node2D (Parallax_Example.gd)'. Cannot convert argument 1 from Object to Object.
var new_house = preload("res://BuildingWalls.tscn")
I am sure its because I forgot something, just can't think of what it is. The BuildingWalls.tscn is added as a singleton and autoload is checked. BuildingWalls is a scene with a Node2d base with a sprite, polygon2d, skeleton2d & bone2d children. It works if I instance the scene in the editor before runtime.
Thanks to anyone that can point me in the right direction.