Aurora User Docs

Animation Layer


Last updated 10.01.2024

The animation layer is another very powerful but very complex and hard-to-use layer. It allows for you to create custom animations using shapes and by creating key-frames in the animation editor. There is a basic guide on how to create animations here.

This layer can also be triggered when certain events happen. You can select it for when a game-state value changes or when you press/release a key. When in a key-mode, the animation can optionally be translated to the location of the pressed key. This basically provides a means of creating a custom interactive layer if you don’t like that layer’s default effects.

An very basic example animation that has a rectangle that grows in width, then in height

Properties

NameDescription
Display Only on Key Sequence KeysIf this is selected, the animation will only be displayed on the keys in the Affect Keys list.
Scale to Key Sequence boundsIf this is checked, the animation bitmap will be scaled and translated so that it covers the keys in the Affected Keys list.
Affected KeysIf Display Only on Key Sequence Keys is checked, the animation will only be displayed on these keys.
Animation DurationThe length of time an animation takes to play. If you do not set this value high enough, the animation will appear to be cut off as it ends too early.
Repeat TimesThe amount of times the animation will repeat. If set to 0, it will repeat indefinitely. When the trigger is not “Always on”, this should not be set to 0 as once triggered the animation will carry on forever.
TriggerThis option is how you set when the animations should be played. The sub-properties for each of these trigger modes are detailed in the tabs below. “Always On” does not have any additional properties.

Value Change Trigger Properties

NameDescription
Trigger pathA path to a number State Variable that should be watched for the value to change.
Stack modeWhat should happen if the state variable changes again while an animation is already playing.
  • Ignore - The currently playing animation will keep playing as if nothing happened.
  • Restart - Restart the currently playing animation.
  • Play Multiple - Play another instance of the animation in addition to the currently running one.

Boolean Change Trigger Properties

NameDescription
Trigger pathA path to a boolean State Variable that should be watched for it to either become true, become false or run while true.
Stack modeWhat should happen if the state variable changes again while an animation is already playing.
  • Ignore - The currently playing animation will keep playing as if nothing happened.
  • Restart - Restart the currently playing animation.
  • Play Multiple - Play another instance of the animation in addition to the currently running one.

Key Trigger Properties

NameDescription
Trigger for any keyIf this is checked, any key press will trigger an animation. If unchecked, only the keys in Trigger Keys will cause an animation to play.
Translate to pressed keyIf this is checked, the animation's origin point (0, 0) (top left) will be translated to the center point of the pressed key.
Trigger keysThe keys that should trigger an animation. Not needed if Trigger for any Key is checked.
Stack modeWhat should happen if the state variable changes again while an animation is already playing.
  • Ignore - The currently playing animation will keep playing as if nothing happened.
  • Restart - Restart the currently playing animation.
  • Play Multiple - Play another instance of the animation in addition to the currently running one.
Stop as soon as key releasedIf this is checked, the animation will immediately stop when the key is released. I.E. it will not wait for the animation to finish playing.

Page authors