Game Development Community

Using Sprite Strips

by John Turner · in Torque Game Builder · 03/23/2008 (2:52 am) · 7 replies

How do you use sprite strips to get moving & animated sprites on the screen?
I'm looking for different methods - I'm looking to create a general behaviour with one of the simple methods
Please point me to any old threads/links or any hints & tips.
Thanx John

#1
03/23/2008 (3:03 am)
I would suggest running through the tutorials that come with TGB. They should point out how to create animations. Here is a brief overview of what you need to do:

1. Import a sprite sheet into TGB as an image map
2. Set the image map's mode to either CELL or KEY instead of FULL
3. Click on the create animation button in the CREATE tab
4. Choose the image map and then the frames you want to put in the animation

That is a brief outline, as I said, the tutorials should cover more details and provide images of the steps.
#2
03/23/2008 (3:07 am)
Thanx 4 speedy reply
I'm looking for a more complex solution -
I want 'idle' , N,S,E,W,Ne, animations to be used under an AI structure
Question - if all above animations in one strip- how best to select correct direction/ animation group.
#3
03/23/2008 (3:47 am)
How long is a piece of string?

How you determine which animation to change to depends on how your game is set up.
#4
03/23/2008 (5:18 am)
5.

In any case, you need to create animation datablocks just as Phil said. Then its a matter of creating a Finite State Machine to manage the animations -- if you anticipate your game needing the complexity of a FSM. There's probably easier ways to do it that won't allow for as much expandability. (Just made that word up, and come to find out it is already a word! Curse you Webster!)
#5
03/23/2008 (6:25 am)
Thanx KJ
I'm looking at the idea of a FSM - a little cmplex for a newbie however,
- If u know whereabouts of some e.gs of this - please give links
#6
03/23/2008 (1:49 pm)
Carpenter Software have a great resource on a TS FSM found here.
#7
03/24/2008 (2:13 am)
Thanx PO
I'm looking @ it now -
If anyone got other ideas/links please let me know
I want to put FSM ideas into a behaviour.