Game Development Community

Getting animation from cells. :|

by Kayne Wright · in Torque Game Builder · 02/08/2009 (9:30 am) · 5 replies

Hey, I just got Torque Game Builder recently and I'm having trouble figuring out the whole cell thing to import my animations...

I've just been working all day on a sprite sheet for a fangame and I thought that I could export each image frame by frame, but obviously not...

Then I read the documentation and it told me I have to have my image laid out in a certain way...

I did this and then the image came out spliced and messed up.

What is the best way to start getting each frame from said animation into TGB?

Thanks in advance!
- Kayne

About the author

Recent Threads


#1
02/08/2009 (10:02 am)
Make sure that you have even sized images laid out in a single file.
I.E if you had a 4 frame animation, each cell being 128px by 128px - you could put this into a Single PNG file 256px by 256 px and have the cells laid out 2 by 2.

Once youve added the image to yur project in TGB change the mode to cell and just make sure you set the cell size to 128 by 128 in the image properties. Thats really all that needs doing.
#2
02/08/2009 (10:04 am)
Awesome!

Thanks for sharing that info with me, I was really strung up on the whole size of each cell.

I'm guessing that you multiply the number they are laid out by in twos then?
#3
02/08/2009 (11:06 pm)
... and in case you've not seen it, I wrote up a tutorial a while ago where I go through image-maps in quite some detail here.

Hope this helps,

Melv.
#4
02/10/2009 (1:18 am)
Doesnt have to be by 2. You could have all the images laid out in one row 512px by 128 px. as long as you get the cell sizes right when setting the image properties in TGB
#5
03/22/2009 (2:10 pm)
Melv May, that link is not working.