Moon Child

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. &nbsp

XML
                <playAnim animLabel="airborneLeft"/> <always mustBeAirborne="true" movingRight="true"> <playAnim animLabel="airborneRight"/> <always mustBeGrounded="true" notLateral="true"> <playAnim animLabel="idle"/> <always mustBeGrounded="true" movingLeft="true"> <playAnim animLabel="movingLeft"/> <always mustBeGrounded="true" movingRight="true"> <playAnim animLabel="movingRight"/> <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>