Can I extract Flash SWF sprite frames to bitmaps?
I want to create the 2D graphics of my game in Flash Studio, but then get all the frames from my SWF movies into C# for further work in Unity3D. I find it easier to create nice smooth animations in Flash Studio. But then I also want the performance Unity gives and the multi-platform support as well. How can I do this?
Have you tried using ShoeBox it has many utilities for SWF files.
One of those allows you to create spritesheets from a SWF file.
While not exactly what you’re looking for, this post on reddit might be of interest – an upcoming tool for rendering swf animations in Unity, from the sounds of it the performance is good and you still retain the cross-platform functionality.
You might try using Flump: http://threerings.github.io/flump/
You’ll have to port one of the existing client libraries to Unity, but the client libs are simple and should be pretty easy to port. Most of the heavy lifting is done by the exporter.
I’m guessing you mean “Flash Pro”. You can export a sprite sheet directly from inside Flash Pro. Instructions are available on Adobe’s web site.
This will take a snapshot of each frame of the animation, at the interval for the frame rate you specify, then combine all the frames into a grid in a single image.
You can then load the sprite sheet into Unity to create the animation. There’s a tutorial on raywenderlich.com showing how to do this:
There are a number of tools for this purpose. Flash itself has an option for something like Export to PNG Sequence. Texture Packer also can import a SWF. Yet another option, which I used to create the spritesheets for the HTML5 demo on my site, is Zoe, the spritesheet tool that comes with CreateJS.
- Database Administration Tutorials
- Programming Tutorials & IT News
- Linux & DevOps World
- Entertainment & General News
- Games & eSport