FlashTo2DTK Easy Flash to Unity Animations [RELEASED]

Easily import MovieClip animations from Flash to Unity.

Designed to be very simple to use

Great for Cut Out animations and ordinary object motion, each flash element becomes a Unity game object, so you can add additional scripts, colliders or kinematic rigidbodies to animated pieces.

Converts Movie Clips to Textures that can be made Texture Atlases with 2DToolkit

imports Movie Clip animations including Layer order and Registration Points

Works on Web Player, Desktop and Mobile.

NOTE: Requires 2DToolkit 1.76 or newer to work

visit these links to know more about it:

Flash Player vs Unity Web Player Comparison

Detailed Explanation of the workflow

Demo video of bringing a multi element flash animation to unity in less than 5 minutes

FlashTo2DTK is available at the Asset Store for $25 Dollars HERE

Version 1.2 has very important fixes recommended for everyone

  • unity 4 compatibility while preserving unity 3.5.6 backward compatibility
  • now it imports flash layer order and registration / pivot points retrieved from sheets.xml
  • plays empty frames, now you can leave some frames blank and they will play just like in flash
  • some workflow changes from 1.0, now you have to select the folder instead of animations.xml
  • various minor bug fixes

Screenshots (click to see bigger versions)

This looks really interesting. 2DTK is one of my favourite tools. If one had a flash game would this import the game? or only the image and animations i.e. no interaction with the objects unless it is programmed in Unity?

you reference an included .swc in flash which is the exporter and it exports the images and animations of the desired movie clips then on the unity side you import the images and animations, and then you program stuff with unity, it contains an animation player class with a lot of helper functions to play the animation as you please :sunglasses:.

check my website HERE for some code examples and know more about the workflow

Ok, thanks. That clarifies things a bit. I’ll pop over to your site and have a root around. Thanks again.

Looks amazing :slight_smile:

thanks :smile:

Version 1.2 has been released and it contains very important fixes recommended for everyone

  • unity 4 compatibility while preserving unity 3.5.6 backward compatibility
  • now it imports flash layer order and registration / pivot points retrieved from sheets.xml
  • plays empty frames, now you can leave some frames blank and they will play just like in flash
  • some workflow changes from 1.0, now you have to select the folder instead of animations.xml
  • various minor bug fixes

Interesting.
I have a few questions :

1- Can it be used for a character animation? Say, I have a character that plays continuously a flying animation (flapping wings for example)…

2- Does your animation class allocates memory at runtime? I’m currently having this problem with SmoothMoves, which makes the Garbage Collector triggers every 5 seconds, thus creating hiccups in my scrolling. So if muy animation plays continuously, will the heap grow continuously too?

3- Will it work on mobile devices too?

4- Would it be possible to convert the imported animations to TK2D animations ?

hello there

1.- yes, it can be used for character animation, specially for cut out character animation, you can play ,stop, pause , loop,reverse, ping pong the animation at any time during runtime via scripting or preset some state in the unity editor

2.-animation files are xmls that are loaded into a couple of dictionaries at startup so it just allocates frame data when first loaded stays like that, it doesnt allocate anything during any loop.

3.- works perfectly on mobile devices

4.- didnt understand very well this one, 2DTK animations are frame by frame traditional sprite sheet animations, this one its for cut out, so separated pieces are animated in order to avoid using so much texture space

Thanks for your replies.

Yeah, question #4 was a bit out of place. Sorry about that. I was probably tired when I wrote the message. Hahaha !

Now , I guess I just have to buy and try your tool. I really hope it will correspond to what I’m looking for. I will give you my impressions soon.

What happened?!?

this tool is gone? perhaps the tk2d team didn’t fancy that he wrote a commercial add-on to their stuff? still I’d rather they appropritate/hire him rather than just a cease-and-desist