To add to this you should DIM MAP[0] instead of DIM MAP[10000]. DIM MAP[10000] a waste of space and unnecessary, it makes the array size bigger automatically.
Introduction
So I noticed that a lot of people have no clue onto how to use the files that you get from the map editing program. So I decided to write about it. It is very nice and has advantages over just making them in the program. To begin, make sure that you have used "SCSAVE" and not the MAP save, MAP saves are just useful for loading it to work on it again, but not really necessary.Loading the files
So to begin you are going to want to load the files. They should be "SC_MAPNAME_Lx". So first we are going to make an array. The command that we will use will automatically expand the array, so you can just say 0 elementsDIM MAP[0]Then what use is it if we don't do anything with it? First, set the BGSCREEN size to 64x64, then put the loading in a FOR loop to have it be simpler.
FOR I=0 TO 3 BGSCREEN I,64,64 LOAD "DAT:SC_MAPNAME_L"+STR$(I),MAP,FALSE NEXTIf you actually ran this, you will have noticed that nothing really happened. This is because we did not use a vital command: BGLOAD. Basically just put "BGLOAD I,MAP" between the LOAD and the NEXT and it should work.