InfuriatedCoder / Flarling

A Starling animations export tool
MIT License
1 stars 1 forks source link

Flarling

A Starling 2 animations converter and player

Description

Flarling allows you to export an animation from native Adobe's .FLA file format. It supports a limited list of animatable parameters only:

Flarling requires a specific .fla files which follow the following guidelines:

Guidelines

On the image below you can see an animation called "animation1" which has two keyframes ("idle" and "walk"). It consists of two images - "bubbles" and "star". Star has a custom pivot point and some of its keyframes have custom easing functions. flarling1

Using Flarling in your project

Timing

Flarling will use your project's FPS so you will see 50 or 60 FPS animations with the same timing. That means, you can have your FLA running on 12 FPS and your mobile project running on 60 FPS.

Blend modes

Don't forget to register missing Starling blend modes before adding an animation which is using them.

Transitions supported

Texture atlas

You may use the same MovieClips to create a texture atlas to use with Flarling OR use another atlas with the same subTexture names including four zeroes "0000" suffix.

Pivot points

Starling AssetManager doesn't use pivot points from the atlas by default. To use them, download AssetMan extension class from the repository. Flarling lib detects if the AssetManager has property 'pivots' of class Dictionary and loads pivot points from it.