プレイ日記
Merpaderp? PvzLucario3
why wont the map loading work
0そうだね
プレイ済み
返信[1]
親投稿
Chickens32 Chickens32
Oh... Lucario... recognize me? We used to be Friends in Animal Crossing.
0そうだね
プレイ済み
返信[2]
親投稿
Merpaderp? PvzLucario3
yea
0そうだね
プレイ済み
返信[3]
親投稿
Stewart segludian
use sc save instead of save in the map editor. This will create a file per layer. For each layer, load that as a dat: file into an array then pass that array to bgload. If you have custom tiles load that as grp5:filename.
0そうだね
プレイ済み
返信[4]
親投稿
Merpaderp? PvzLucario3
can you type the code for me so I can add & erase
0そうだね
プレイ済み
返信[5]
親投稿
Stewart segludian
Here is a demo of what I mean. You can skip the grp5 load if you don't have custom bg tiles. While you still want to save in the map editor so you can edit things. The layer files you get from the sc save command. Change the file names as appropriate.
0そうだね
プレイ済み
返信[6]
親投稿
Stewart segludian
You probably want to change 64, 32 to 64, 64 in the code since I was only using the top half of the map. If you do it right you can get something like the attached image. Truthfully however, I might just skip the map editor and use read/data commands to design things since you can't choose any size other than 64x64 in the map editor.
0そうだね
プレイ済み
返信[7]
親投稿
Merpaderp? PvzLucario3
whats the code for just one map
0そうだね
プレイ済み
返信[8]
親投稿
Stewart segludian
That is just one map, but it has four layers. If you put everything on a single layer, you can skip the other three. For multiple layered maps, you can move the layers at different rates to get a nice parallax effect.
0そうだね
プレイ済み
返信[9]
親投稿
Merpaderp? PvzLucario3
I just want one layer whats that code
0そうだね
プレイ済み
返信[10]
親投稿
Stewart segludian
Same thing, just remove the code for the layers you don't want. In my demo here, layer 3 had all of the interesting tiles.
0そうだね
プレイ済み
返信[11]
親投稿
Merpaderp? PvzLucario3
ok thanks!
0そうだね
プレイ済み
返信[12]
親投稿
Merpaderp? PvzLucario3
whats the code for if you do locate (?,?) & if a sprite goes there then it loads something
0そうだね
プレイ済み