Documentation

  Dividing an animation on Sequences

Dividing an animation on sequences is useful when you need to split the animation into some logical segments. For example, a character animation can be split into following sequences: "walk", "stand" etc. Of course, you can create separate animations and change them during playback, but sequences-approach is much easier from all points of view.

 

How to prepare an animation in Flash Pro

Animation on Main Timeline (Stage)

To split animation into sequences in Flash Pro, you need to use Frame Labels. If your animation is placed on Main Timeline (Stage) do the following:

In order to add one more sequence into the animation do the following:

standalone gaf converter

The first frame of the sequence is the frame where frame label is set. The last frame of the sequence is the last frame before the next frame with another frame label (or the last frame in animation if there are no more frame labels).

Animation in Library (Movie Clip exported for Action Script)

In case your animation is created inside a Movie Clip exported for Action Script, and you are using Conversion source: Library to convert the animation, the workflow is the same. The only difference is in the place where the layer "Labels" is created. In this case, it should be created inside a Movie Clip exported for Action Script (not on Stage).

Sequences in nested Movie Clips

You can set up sequences inside a nested Movie Clips. Nesting level is not limited. But GAF Converter will extract and save all nested sequences into GAF only when Conversion mode: Nesting is used. During the conversion using Conversion mode: Plain GAF Converter ignores all nested sequences. You can find more information about conversion modes and how to change them in the article How does the conversion work?.

 

How to playback/change sequences in runtime

Starling GAF

starling

You can find an example of how to work with sequences in Starling GAF library in the sequences sample in the demo directory.

 

Cocos2D-X v3 GAF

cocos2d-x

Example for this library is under development and will be available in the near future.

 

Cocos2D-JS GAF

unity

You can find an example of how to work with sequences in Cocos2D-JS GAF library in the sequences sample in the demo directory.

 

Unity3d GAF

unity

Example for this library is under development and will be available in the near future.