Game Development Community

SpriteSheet Question

by Rich Hudson · in Torque X 2D · 09/11/2007 (8:49 pm) · 2 replies

I am using sprite sheets for animation. However I have 7-8 sheets for each character/monster I am using, each sheet contains on average about 64 sprite images (8-11 animations in all 8 directions). Now turning these into seperate "Animations" in Torque X Builder is extremely time consuming and if I add a dozen monsters I will have many many many animations to handle. Is there a better way? Say create an animation which contains an action "attack, walk, die" in all 8 directions then use the direction I need programmatically??

Any suggestions would be appreciated...

RH

#1
09/12/2007 (4:35 pm)
You could create the materials by adding them to your project in TXB and then just create the T2DAnimationData for the animations on the fly in C#. It might be easier if your animations all follow the same conventions.
#2
09/13/2007 (8:53 am)
Create the animations for one "sheet" and save it to XML. Then open the XML level file, copy and paste the code block for that "sheet", select the new code, and use find and replace to rename whatever necessary (like monster1 with monster2).

I think you would want to copy/paste your new animationdata into your project xml file rather than an individual level xml file, but in that case it might copy it over to your project for you, who knows.