Game Development Community

FlashCS4 animations to TGB

by John Santiago · in Torque Game Builder · 07/03/2009 (10:40 pm) · 1 replies

I am looking for some information on how to take my flash created characters, animations, backgrounds etc. and drop them into TGB. I have created simple game in Flash and love creating my vector characters. What do I have to do to transfer those images to Torque. Some one was explaining to me that I create some type of sheet. Any help or direction would be very much appreciated

Thanks
John

#1
07/04/2009 (12:31 am)
You'd need to render the animations into spritesheets. I'm sure you could easily write a function into the animations themselves to render that somehow. I dunno Flash, but I know it should be possible, at least with AIR (where you have access to the local filesystem).

Spritesheets are usually a collection of all frames in one walk/idle/attack animation for one direction, depending on how many frames you can squeeze in. The frames are either all the same size, or colour keyed. Equal size with a transparent background in a PNG is usually the best for TGB. Maximum size of a sheet shouldn't be more than 1024x1024, and it should be in even powers of two (64x64, 128x128 and so on) to avoid being reallocated as an even size anyway.