I've made a simple map editor that holds tile numbers of a map in an array like so:
Map(X,Y)
So from the editor's perspective, the array values on the map would be:
(0,3)(1,3)(2,3)(3,3)
(0,2)(1,2)(2,2)(3,2)
(0,1)(1,1)(2,1)(3,1)
(0,0)(1,0)(2,0)(3,0)
Where Map(0,0) would access the tile in the bottom left corner. It all works well and I save the array with the line:
Save Array "File.map", Map()
However a strange thing happens when I load the map. I load it with:
Load Array "File.map", Map()
But it only loads the first set of indices, that is to say the only part that shows up is the left column on the map (anything where x = 0). The even stranger part is that if I click the load button again, it loads the rest of the map.
Anyone have any idea why this would happen and a way to fix it?
"Computers are useless they can only give you answers."