I'm trying to make the game transition whenever you die in my game. I just made a new scene that calls GameScene() because my actual gameplay is in a lua file that I made before using Noble. However, it doesn't save which level you're on when you die, so I added it as transition data and had it call GameScene(level) instead. However, now it crashes with "attempted to index a nil value" for local level = ldtk.get_neighbours(self.levelName, direction)[1]
. Anyone know what's going on?
NVM, I fixed it with the help of discord