Skip to content

Animations

Adrian K edited this page Oct 25, 2024 · 4 revisions

Description

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

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

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:

  • linear
  • easeIn
  • easeOut
  • easeInOut

Example

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.

Wiki

Home

Type Overviews

Auto

Basic

Countdown

Group

Jump

Sand

Sequence

Clone this wiki locally