In a game I am working on, I have a tile that a mapgenerator script arranges according to the map algorithm I choose.
Each tile is a scene consisting of 2D tile sprite and an attached script tile.gd which contains a number of variables meant to be unique to the tile, such as position, text , is_discovered and so on.
Before I added the script the tiles were just sprites saved as scenes. The algorithm that places them has no issues with placing them in the correct order. Once I add the script however, the exact same algorithm now spawns what seems like only one tile in one spot.
I cannot figure out why.
The function that loads the map is attached.
