Builders Zone
Build Talk Explore
Flatland home

return to the 3DML tutorial

ShowMe Code for ACTIONS in 3DML


<SPOT>
<HEAD>

<DEBUG />
<TITLE NAME="First Spot" />
<BLOCKSET HREF="http://blocksets.flatland.com/flatsets/basic.bset"/>
<MAP STYLE="single" DIMENSIONS = "(9,9,1)" />
<SKY TEXTURE = "images/clouds.gif" BRIGHTNESS = "90%" />
<GROUND TEXTURE="images/dirt.gif" />
<AMBIENT_LIGHT BRIGHTNESS="100%" />
<AMBIENT_SOUND FILE = "sounds/waves.wav" VOLUME="65%" PLAYBACK="looped"/>
</HEAD>


<BODY>


<CREATE SYMBOL="1" BLOCK="sprite">
    <PART NAME="*" TEXTURE="images/animate.gif"/>
    <PARAM ANGLE="45" />
</CREATE>


<CREATE SYMBOL="2" BLOCK="spriterevolve">
    <PART NAME="*" TEXTURE="images/animate.gif"/>
    <PARAM SPEED="1" />
</CREATE>


<CREATE SYMBOL="3" BLOCK="spriteface">
    <PART NAME="*" TEXTURE="images/animate.gif"/>
    <PARAM ALIGN="top" />
</CREATE>


<CREATE SYMBOL="4" BLOCK="spritefacet">
    <PART NAME="*" TEXTURE="images/animate.gif"/>
    <PARAM ALIGN="center" />
</CREATE>


<CREATE SYMBOL="#" BLOCK="full">
    <ACTION TRIGGER="click on">
       <REPLACE SOURCE="A" />
    </ACTION>
</CREATE>


<CREATE SYMBOL="A" BLOCK="FULL">
    <PART NAME="*" TEXTURE="images/PINKMARBLE.gif"/>
</CREATE>


<LEVEL NUMBER="1">

###.@.###
#.......#
#.1.....#
#.....2.#
#.......#
#.3.....#
#....4..#
#.......#
#########
</LEVEL>

<ENTRANCE LOCATION="(5,2,1)" NAME="second" ANGLE="180.0"/>

<ENTRANCE LOCATION="(5,8,1)" NAME="default" ANGLE="0.0" />

<EXIT LOCATION="(5,1,1)" HREF="tallspot.3dml#default" TRIGGER="click on,step on" TEXT="tallspot"/>


</BODY>
</SPOT>

return to the 3DML tutorial

texture styles orientation guide tips,tricks more blocks actions sprites popups lighting sound linking orientation textures navigation mulitilevels body tag head tag starting welcome