At first please open your .ai file with character. In our case it is a Caterpillar from our new game "Hive Defence"(Google Play). Click on "Artboard" icon within Tool panel (see Fig. 1.1) , and rename it (see Fig. 1.2).
Here at in4ray we used to name animated character following such pattern: "CharacterName" + "State" + "##" (e.g. "CaterpillarState01"). But obviously you are free to name it at your own.
Fig. 1: 1/ Artboard Tool, 2/ Rename Artboard, 3/ Copy/Move Artwork with Artboard |
Fig. 2: Duplicate artboard together with artwork |
Duplicate artwork as many as you need for smoothly animation and save you work. Usually for small characters 4-6 states are enough (see below at Fig. 3).
Fig. 3: All character's states as artboards. |
To install script, please download it here and place at "/Applications/Adobe Illustrator CS5/Presets.localized/en_GB/Scripts" (for MacOS) or at "c:\Program Files (x86)\Adobe\Adobe Illustrator CS5\Presets\en_GB\Scripts\" (for Windows). After placing restart Adobe Illustrator.
Open your .ai file with all the character states placed at separate artboards. Then select installed "SaveArtboardsAsFXG" script (see Fig. 4 below).
Select folder for export and click "Open" button. That's all now you have all the states for character generated by script at ones.
Feel free to use script at your own purpose and feedback us with your notes if any.
Hi,
ReplyDeletePlease help me on iPhone 5, i am having trouble with my screen. Not do the auto fit. Sorry for my English.
Thanks