-
Notifications
You must be signed in to change notification settings - Fork 2
Animations
Platforms support animations to make them make sense in the level you are creating.
You can specify the animation to be used inside an Animation xml tag.
You may also define an AnimationOut tag that will change the animation played when a platform goes away. If not defined Animation will be used for both.
Style refers to the played animations overall movement.
When not specified the default style will be fade.
Supported are five different styles:
-
fade- The platform will fade in and out -
top- The platform will enter and exit from the top -
bottom- The platform will enter and exit from the bottom -
left- The platform will enter and exit from the left -
right- The platform will enter and exit from the right
Curve in animation refer to the speed an animation plays at at different stages of the animation.
As the animation is rather fast different curves may not be as noticeable.
When not specified the default curve will be linear.
The supported curves are:
lineareaseIneaseOuteaseInOut
An example file may look like this:
<Platform>
<Texture>platform_blue_square</Texture>
<Position>
<X>312</X>
<Y>192</Y>
</Position>
<Animation>
<Style>top</Style>
<Curve>linear</Curve>
</Animation>
<StartState>on</StartState>
</Platform>
This would set the style to coming in from the top in a linear fashion.