Grapefrukt importer - Flash animations into monkey

Monkey Forums/Monkey Code/Grapefrukt importer - Flash animations into monkey

Beaker(Posted 2012) [#1]
I've made a monkey Grapefrukt importer library. It's one way to get your Flash animations into monkey:

Example (using one of the grapefrukt example animations):
http://beaker.powweb.com/grapefrukt/MonkeyGame.html

Grapefrukt website:
http://prototyprally.com/introducing-the-grapefrukt-asset-exporter/

monkey project:
http://beaker.powweb.com/grapefrukt/grapefrukt.zip

It works pretty well, but I'm not sure it supports hierarchical skeleton type animations. Better than a poke in the eye tho.

Enjoy. Let me know how you get on.


ReddoC(Posted 2012) [#2]
Just download, and it seem to be excellent :)


matt(Posted 2012) [#3]
Very cool


slenkar(Posted 2012) [#4]
looks good, can it play sounds at certain times? (like for dialogue)


Beaker(Posted 2012) [#5]
It's quite simple really. It turns your animated flash vector objects (and possibly BMPs) into PNGs and exports some xml to describe the animation. It doesn't support sound at all, but I'm sure it could be hacked to support it.

Looking at this it looks like it does support skeletal animation:
http://www.mechmocha.com/cocos2d-skeletal-animation-part-2/

Someone did a hacked version to export to Cocos2d that seems to support sound:
https://github.com/TheDamArmada/Flash2Cocos2D
but they are possibly just reading decorated frame names to trigger sound.

I didn't actually ever use grapefrukt in the end. I was merely assessing whether to use monkey or Unity for a project and, in this case, Unity won.