Animation tools - Flash import?

Member
Posts: 110
Joined: 2009.07
Post: #1
Hi folks,

I'm looking into a way of getting simple position/scale/rotation information into my game from an external editor of some sort. Flash would seem to be the obvious choice for an editor, but I have little experience with its file formats.

- Is importing from Flash .swf an insane idea?
- If so, is there a better alternative (I'm likely to code my own if it's too hard)
- If not, are there any resources anyone could point me to?

Thanks, as ever for any opinions or help!

http://www.fluttermind.com
Fluttermind - Games for Everyone
Quote this message in a reply
Moderator
Posts: 1,560
Joined: 2003.10
Post: #2
Importing from Flash might be insane, but if you're set on it, SWF isn't a completely asinine format to parse: http://www.adobe.com/devnet/swf/pdf/swf_...ec_v10.pdf
Quote this message in a reply
Member
Posts: 110
Joined: 2009.07
Post: #3
Pfft... I'm certainly not set on it. I like my remaining hair. I'd like it to stay where it is. If there's an easier way, I'm all ears... and eyes. Indeed, I'm a freakish sensory machine waiting for input.

Thanks for the link!

http://www.fluttermind.com
Fluttermind - Games for Everyone
Quote this message in a reply
Member
Posts: 45
Joined: 2006.07
Post: #4
SVG is easy to parse and there are already libraries to do so. Inkscape and Illustrator are good programs to look at -- Flash may also be able to export to SVG.

http://en.wikipedia.org/wiki/Scalable_Vector_Graphics
http://www.w3.org/Graphics/SVG/
http://librsvg.sourceforge.net/

In my programs I just parse a small subset of SVG for only certain simple entities - lines, rectangles, circles. That's not many lines of code to do that.

Good luck!
Quote this message in a reply
Sage
Posts: 1,482
Joined: 2002.09
Post: #5
Well, he didn't want shapes so much as animation information it sounds like. Unfortunately this sounds like the sort of thing that you will have to write your own editor for. I'm not sure if I know of anything that does quite what you want.

Scott Lembcke - Howling Moon Software
Author of Chipmunk Physics - A fast and simple rigid body physics library in C.
Quote this message in a reply
Member
Posts: 110
Joined: 2009.07
Post: #6
Skorche Wrote:Well, he didn't want shapes so much as animation information it sounds like. Unfortunately this sounds like the sort of thing that you will have to write your own editor for. I'm not sure if I know of anything that does quite what you want.

Or alternatively, I suppose I could write some Blender plugins...

http://www.fluttermind.com
Fluttermind - Games for Everyone
Quote this message in a reply
Nibbie
Posts: 4
Joined: 2009.10
Post: #7
Is Gameswf of any help?

It plays flash and compiles for iPhone but I haven't tried it myself Smile

http://sourceforge.net/projects/tu-testb...p/download
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  draw and import SVG in Cocoa Chandhu 4 3,972 Feb 27, 2008 04:52 AM
Last Post: kuon_