Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | xDGameStudios |
Right now I’m trying to export a variable to link to a TileMap node in the scene, so I’m using an:
export(NodePath) var tilemap_node
this exports a variable that lets me select a Node from the scene, and this all works ok.
My problem is when I try to do something as:
var a = tilemap_node as TileMap;
I thought this would work but I get an error!!
“Can’t convert a non-object value to an object type”
I don’t know what this means and how can I make it work!!