![]() |
||||||||
![]() |
||||||||
![]() |
15
| MORE BLOCKS!
Multiple Blocksets
The default textures for the SKY, GROUND, PLACEHOLDER etc. will come
from the primary blockset.
Within each Blockset, each block has a default symbol. When using more
than one blockset, however, you may encounter situations where the same
default symbol is used to represent 2 different blocks from 2 different
blocksets. In this situation, the default symbols from the primary blockset
(the one that appears first in your 3DML file) take precedence. You can
still use the default symbol for a block in a secondary blockset if that
symbol isn't used in the primary blockset. If you want to refer to a block
that comes from a secondary blockset, thenjust preceed the name of the
block with the name of the blockset, separated by a colon: <CREATE SYMBOL="A" BLOCK="village:housebase1"> Textures refered to with the @ symbol will come from the primary blockset. Again, to refer to a texture from a secondary blockset, preceed the name of the texture with a colon and the name of the blockset: <PART NAME="n" TEXTURE="@village:bluedoor.gif" />
Use Elements from the Village Blockset <BLOCKSET HREF="http://blocksets.flatland.com/flatsets/village.bset"/>
The Basic and Village blocksets are designed so that the default block
symbols don't overlap, so we can use the lamp block without doing anything
special in the <CREATE> tag. But lets make a <CREATE> tag anyway,
just to illustrate how it works.
Add the following code to the beginning of the BODY section of tallspot.3dml:
And change level 3 of your map to look like this:
<LEVEL NUMBER="3">
Now go back to the create tag that you made way back in the beginning of the tutorial for the FULL block (#) and change it to read: <CREATE SYMBOL="#" BLOCK="full"> Now save your file and open it in your browser.
You should see a streetlamp from the village set up on the roof, and the
walls on the bottom level should be covered in square bumpy things.
Double-Characer Symbols When you use a double-character map, you must also use double-characters in your CREATE tags, or anywhere else that you might be referring to blocks. Each block has a single character symbol by default. The default double-character symbol for each block is the same as the default single character, preceeded by a "." So the default symbol for the FULL block, "#", becomes simply ".#". An NRAMP block is normally "N", and its double-character default is ".N", etc. When you make a map
with double characters, you can leave a space in between the symbols for
each block, so that you can read your map more easily. Here's a very simple
single character map, and the same map made again with double characters:
Its not necessary for
you to convert your tallspot.3dml spot to double characters, but
here's what it would look like if you did, with all changed tags in
bold.
|
Copyright 1999, 2000 Flatland Online, Inc.