Game Development Community

TGB Animation Sprites

by Sam.E · in General Discussion · 12/31/2008 (5:46 am) · 4 replies

Hey all, I have been working on programming my game but I have just got up to the part were I need to add the sprites of the people.. How can I animate them? I have seen alot of tutorials and there are like 50 different frames for each sprite (standing, dead, etc...).

So any help on this please post! THANKS!

#1
12/31/2008 (10:34 am)
@Houssen - You will need to start posting in the Torque Game Builder section of the site, because your posts here are not getting picked up by the other TGB users.

To answer your question, you have two immediate choices: use the animation builder (which there are a lot of tutorials for) or script out each animation code block.

Earlier this year I had to add in 20 sprite sheets, each with about 30 animations. So I had to load a sprite sheet, change its properties to be celled and the right size, then create use the animation builder for each anim.

After I did this twice, I decided to write a C# application that would handle this for me. It was a GUI which allowed you to pick a sprite sheet, write in your parameters, then it would generate all the t2dstaticsprite and t2danimation scripts for me.

So I went from manually editing a single sprite for 40 minutes, to a 2 min automation.
#2
12/31/2008 (10:20 pm)
Oh okay, thanks for the info.. Just one more thing though, any chance I could download this application that you made?
#3
01/01/2009 (2:41 am)
@Houssen - Unfortunately, the tool was written specifically for the project I was working on. Which means it is not fit for community consumption, and is best used for what I was working on at the time.

I wrote it from scratch, on a whim. I ended using the File I/O and string classes provided by stock C# libs.
#4
01/01/2009 (3:39 am)
Okay thanks :D Ill go to the 2D Art forum on the TGB private and check out some things there :D