I was wondering if anyone would be kind enough to spare some time to help me out here? I'm an artist currently working with a programmer to produce a small Flash game. I'm rendering short character animations (eg. jump) in 3DS Max as 2D frames to be imported into Flash. There frames were are then compiled into symbols which can be called upon when certain keys are hit. In this way the game will have a 3D like appearence but will ultimately be 2D. Our problems lie in memory usage and slow down which we got a lot of! We created a prototype where each of the frames was imported into Flash as a PSD to preserve the transparency/alpha so that the character could be layered ontop of a vector background. Are we better off:
a) importing frames as PNG's which also have alpha channels - does Flash recognise these though?
b) filling a layer of pure green behind each of the character frames in photoshop, then saving as JPeg's with smaller file sizes and finally keying out the green using Flash's 'ink' tool?
c)sticking with the PSD's?
Also we plan to have each of the animations running at 24fps - is this too ambitious for a Flash game?
Finally anyother actionscript tweaks we could make to optimise things further. I dont fully understand the whole issue of memory, cache, etc but I could pass on tips to my programmer (his first time working with flash/actionscript).
I'd go PNG, and yes flash will recognize the alpha channels. As far FPS it's tough to say, you might want to do some testing and see how it performs. you could prob go to about 15fps without noticing too much quality loss at that size though.
Ok thanks guys, PNG it is. I think im going to knock up a quick prototype using one idle animation running at three different frame rates 12, 18 & 24fps.
I'd never heard of the cacheAsBitmap property. Unfortuneately we have to use Flash 7 as opposed to 8 because the game is being developed for schools which supposedly, the majority of, are still using Flash 7.