Code:
Code:
plotscript, Map Auto Run 4, begin
variable(collection, sl, slparent, i, j, slicenum)
collection := load slice collection(0)
slparent := lookup slice(sl:map layer0)
slicenum := 1
for(j, 1, 2) do(
for(i, 1, 2) do(
sl := lookup slice(slicenum, collection)
put slice (sl, ((i--1)*320), ((j--1)*200))
set parent (sl, slparent)
slicenum := (slicenum + 1)
)
)
variable(collection, sl, slparent, i, j, slicenum)
collection := load slice collection(0)
slparent := lookup slice(sl:map layer0)
slicenum := 1
for(j, 1, 2) do(
for(i, 1, 2) do(
sl := lookup slice(slicenum, collection)
put slice (sl, ((i--1)*320), ((j--1)*200))
set parent (sl, slparent)
slicenum := (slicenum + 1)
)
)
And here's a screen shot to show off the result. (Note: Resolution has been changed for viewing purposes) Four separate backgrounds can be seen: A, B, C, and D.
Also, I figure a second similar code could be applied to a layer which is above the characters, that way the map could have an overlay. Not only that, but the code could also be changed such that the background layer has no parent, thus the background layer would follow the character as the screen moves. This would be perfect for something like a fog or clouds which are overlaying the map. Something like this could also be animated pretty easily too.
My question: Does anyone think drawing my maps like this will cause me to run in to any problems later in development? I can't foresee any problem thus far. If anything, I find that drawing outside the program would really speed up my process. Drawing unique background layers will also make my maps non-repetitive, which I like.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
⍠ C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases



