![]() ![]() Often when scripting animations, you will have various transformations or other changes happening in an onEnterFrame type of loop. After any changes, you need to click “Capture” to re-capture the frames based on the new settings. If there is not enough space to capture all frames, you can choose a larger bitmap. And you can adjust the frame of exactly how much area is captured in each frame, to maximize space on the bitmap. You can adjust how many frames you want to capture to make sure you get your whole animation and have it loop smoothly. ![]() Once that is done, it will then animate this bitmap using the same techniques you would use to animate a sprite sheet in a real game. The program will then capture an image of the SWF on each frame for the number of frames you have specified (default 15) and arrange them in a grid on the bitmap. ![]() Immediately, you’ll see the live loaded SWF running in the upper left panel. Flash CS5 or earlier, Flash Builder, or anything else that outputs a SWF. SWFSheet is an AIR application and has been tested on Windows and Mac. I did it by hand a couple of times, and it wasn’t very fun. However, getting a nice looking Flash animation into a sprite sheet that could be used with cocos2d on the iPhone/iPad or with XNA for Windows Phone 7 was not so easy. It has a powerful time line, easy to use drawing tools, tweens, 3D, and of course, powerful scripting with ActionScript. And later while making other mobile games, I found that Flash was still the best tool to create animations. I had the idea for this program while attempting to port some Flash stuff to the iPhone. These can be loaded in very efficiently by games, and each frame shown to recreate the animation. A sprite sheet, for those of you who may not be familiar, is a single large bitmap containing several frames of an animation, usually layed out in a grid. The idea is to take an animation created in Flash, and generate a sprite sheet from it. I finally polished it up this week and it’s now ready for release. SWFSheet is a program I created in most of a day back in late December. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |