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
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
About the author
#2
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.
03/23/2008 (3:07 am)
Thanx 4 speedy replyI'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
How you determine which animation to change to depends on how your game is set up.
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
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!)
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
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
03/23/2008 (6:25 am)
Thanx KJI'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
#7
I'm looking @ it now -
If anyone got other ideas/links please let me know
I want to put FSM ideas into a behaviour.
03/24/2008 (2:13 am)
Thanx POI'm looking @ it now -
If anyone got other ideas/links please let me know
I want to put FSM ideas into a behaviour.
Associate Phillip O'Shea
Violent Tulip
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.