3
\$\begingroup\$

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?

\$\endgroup\$
3
+50
\$\begingroup\$

Have you tried using ShoeBox it has many utilities for SWF files. One of those allows you to create spritesheets from a SWF file.

\$\endgroup\$
1
\$\begingroup\$

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.

\$\endgroup\$
1
\$\begingroup\$

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.

\$\endgroup\$
1
\$\begingroup\$

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.

http://helpx.adobe.com/flash/using/create-sprite-sheet.html

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:

http://www.raywenderlich.com/61532/unity-2d-tutorial-getting-started

\$\endgroup\$
1
\$\begingroup\$

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.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.