Moon Child | |
---|---|
player | |
Creator |
Zip |
Destroyable? |
yes |
none | |
yes | |
Movement |
walk & jump |
Solid? |
yes |
unknown | |
Special properties |
none |
The Moon Child is a player controlled piece found in the library. It moves with the arrow keys and WASD. It is used in the majority of platformer games.
Appearances[]
The Moon Child has 3 different appearances, the normal Moon Child, the Spooky Child and the Santa Child. There is no difference in controls or powers, except for the Spooky Child that can only move with the arrow keys but not with WASD. Moon Children are one of the main characters of DTMs, and often get in a fight with a stickman by touching his hand.  
XML[]
<object name="Moon Child" type="player" color="0x2492ff" instructions="Arrow keys or WASD to move."> <shape destroyable="true"> <perimeter> <polygon x="0" y="0"> <vertex x="-0.38" y="-0.1975"/> <vertex x="0.38" y="-0.1975"/> <vertex x="0.25" y="0.3575"/> <vertex x="0.1" y="0.4775"/> <vertex x="-0.1" y="0.4775"/> <vertex x="-0.25" y="0.3575"/> </polygon> </perimeter> <visual priority="3" sourcePixelsPerMeter="40"/> <physics source="perimeter" gravity="true" density="1.05" bounciness="0.05" friction="1.0" solid="true" anchored="false" angleLock="true" collisionSoundURL="assets/gameAssets/woodLight.mp3" collisionSoundPriority="1"/> </shape> <controller> <otherCollided> <awardScoreOfOther/> <destroyOther/> </otherCollided> <always mustBeAirborne="true" notLateral="true"> <playAnim animLabel="airborne"/> </always> <always mustBeAirborne="true" movingLeft="true"> <playAnim animLabel="airborneLeft"/> </always> <always mustBeAirborne="true" movingRight="true"> <playAnim animLabel="airborneRight"/> </always> <always mustBeGrounded="true" notLateral="true"> <playAnim animLabel="idle"/> </always> <always mustBeGrounded="true" movingLeft="true"> <playAnim animLabel="movingLeft"/> </always> <always mustBeGrounded="true" movingRight="true"> <playAnim animLabel="movingRight"/> </always> <keyPress key="UP" extraKey="W" action="OnDown" mustBeGrounded="true"> <thrust impulse="editable" onePerLife="false" offsetAng="90" absoluteAng="true"/> </keyPress> <keyPress key="RIGHT" extraKey="D" action="WhileDown" mustBeGrounded="true"> <thrust impulse="0.25" onePerLife="false" offsetAng="0" absoluteAng="true" groundHug="true"/> </keyPress> <keyPress key="LEFT" extraKey="A" action="WhileDown" mustBeGrounded="true"> <thrust impulse="0.25" onePerLife="false" offsetAng="180" absoluteAng="true" groundHug="true"/> </keyPress> <keyPress key="RIGHT" extraKey="D" action="WhileDown" mustBeAirborne="true"> <thrust impulse="0.15" onePerLife="false" offsetAng="0" absoluteAng="true"/> </keyPress> <keyPress key="LEFT" extraKey="A" action="WhileDown" mustBeAirborne="true"> <thrust impulse="0.15" onePerLife="false" offsetAng="180" absoluteAng="true"/> </keyPress> <onDestroyed> <emitPFX lifetime="R(1,2.0)" quantity="30" scale="R(1,2) to 0.0" color_r="R(0.4,1.0)" color_g="R(0.4,1.0)" color_b="R(0.4,1.0)" inheritMomentum="false" resistance="R(0,0.05)" sourcePixelsPerMeter="40" velocity="R(0.5,2.5)" angleOffset="R(-100,-80)" gravity="false" visualURL="assets/gameAssets/photon_particle.png" inheritRotation="false" alpha="1.0 to 0.0" vAngle="0" xOffset="R(-.25,.25)" yOffset="R(-.4,.4)"/> </onDestroyed> </controller> </object>