Game Development Community

Walking animations

by Jeremy Tilton · in Torque Game Builder · 04/04/2005 (8:21 pm) · 3 replies

What's the best way to go about doing a walking animation for moving around? At the moment, I'm looking for simple SNES Final Fantasy-like animations (switching between two frames per direction of walking). I'm thinking that in the "playerMove()" method, I will swap the image, but what do I do to "Swap the image"? Would it be more efficient ot simply load up all 8 or so possible images initially and swap the imagemap reference, or have it all stored as an animated image? Any different ideas?

#1
04/04/2005 (8:29 pm)
Info On getting started


There I have a link to the "Unofficial Torque 2D F.A.Q"... in it I have a full example of an animated sprite with walking :) note, you can use .setFlip() to flip the image vs doing duplicate mirror images (like i did)
#2
04/04/2005 (8:52 pm)
Now that is a hell of a resource Matt! I'll have you know I add your stuff to my favorites quite often. You rule.
#3
04/04/2005 (8:55 pm)
Just glad I could help :) T2D is such a great tool!