Sprite Animation Help
by Edel · in Torque Game Builder · 10/11/2008 (5:07 pm) · 1 replies
I'm having problems using or properly setting up the animation methods!! I have done a few tutorials but when using the animation functions I get all kinds of results.
I have one character: 1 -standing frame, 3 -punch frames, and 3 -kick frames. Two buttons: one for punch and one for kick.
What happens when I press punch or kick is: punch / kick frames go from Punch-0 to Punch-2 - I don't see frame (2) of the Punch / Kick frames! Basically, I don't see Punch / Kick Frame-1 which is frame (2) of those particular animations!! I don't suppose anybody can help me out with this??
I am going crazy!! There are no real examples except maybe the platformer tutorial but those frames are set up in such a way that I can't seem to figure out how just (play some frames when I just press a button)!!
So, I guess thats all I want to do; play some frames of a 'particular animation' when I press a button.
I have one character: 1 -standing frame, 3 -punch frames, and 3 -kick frames. Two buttons: one for punch and one for kick.
What happens when I press punch or kick is: punch / kick frames go from Punch-0 to Punch-2 - I don't see frame (2) of the Punch / Kick frames! Basically, I don't see Punch / Kick Frame-1 which is frame (2) of those particular animations!! I don't suppose anybody can help me out with this??
I am going crazy!! There are no real examples except maybe the platformer tutorial but those frames are set up in such a way that I can't seem to figure out how just (play some frames when I just press a button)!!
So, I guess thats all I want to do; play some frames of a 'particular animation' when I press a button.
About the author
Torque Owner Isaac Barbosa
IQ Games
You should try to make three different animations instead of one and trying to play specific frames.
try making one animation for standing, one per punch and one for kick, so you can call:
MyObject.playAnimation("whateveryouwant");
Good luck