PlayCrafter Wiki
Advertisement
Acrobat
Acrobat

Type

player

Creator

Zip

Destroyable?

yes

Projectile

none

Taker?

yes

Movement

walks, jumps and grabs

Solid?

yes or no. default: yes

Costs

510 pips

Special properties

can grab to other pieces

The Acrobat is a tiny player controlled piece that can grab to other pieces. It is commonly used in platformers.

XML[]

<object name="Platformer" type="player" color="8421504" instructions="Arrow keys or WASD to move.">
	<shape destroyable="true">
		<perimeter>
			<circle x="0" y="-0.06" radius="0.18"/>
		</perimeter>
		<visual priority="8" type="swf" url="assets/gameAssets/acrobat.swf" sourcePixelsPerMeter="40"/>
		<physics source="perimeter" gravity="false" density="1.0" bounciness="0" friction="0.0" solid="true" anchored="false" angleLock="true" collisionSoundURL="assets/gameAssets/woodLight.mp3" collisionSoundPriority="1"/>
	</shape>
	<controller>
		<otherCollided>
			<awardScoreOfOther/>
			<destroyOther/>
		</otherCollided>
		<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>
		<platformer/>*
	</controller>
</object>

*) Note: the <platformer/> command can only be used by staff.

Advertisement