Game Development Community

Animation trigger help!

by jerryg7rk3w · in General Discussion · 03/14/2011 (1:20 pm) · 4 replies

I have a run animation but the problem is when the animation cycles back through it plays from the beggining
of the animation which shows him starting to run, then run and keeps repeating.

So the question is how do you play an animation once and then have that animation cycle back through at a different start frame and loop?

#1
03/15/2011 (9:51 pm)
If my question is not clear then heres an example.

Animation frames = "9" 1,2 and 3 are the animation frames of the character starting to run and animations 4 to 9 are his run animation frames that i want to loop.
So all i want to do is play the 123 frames once the animation starts and only once, then have the remaining frames of that animation loop.
#2
03/16/2011 (5:09 pm)
I can't imagine why? Convoluted; will probably need C++ source changes or hack. Movement 'actionThread' animation is based upon velocity....sounds like you want 2 separate types of 'run', a 'pre' run sequence and then the loop cycle, both based upon movement code...

Good luck with that, without a SDK license; you'll be hacking together 'playThread', 'actionThread'....

Sounds as though you want a 'foot race' effect...runner gets in blocks, gets ready[the nonCyclic part], then 'runs' when starting pistol fired[cyclic part]? Something like that?
#3
03/16/2011 (10:13 pm)
Yea i just wanted to loop the part of his animation where he is running.
I want the frames 4 to 9 to loop or cycle as long as a arrow key is held and then when released it resets the animation so that the pre run animation can play again, but as long as the arrow key is held the aimation should continue to play only the run animation without restarting the begining prerun frames 12 and 3, I want 123 to be skipped is this possible without a hack because all i have is the TGB version V1.7.5 and i dont have the full source.
#4
03/17/2011 (7:18 am)
My apologies,I am not certain how TGB works it's animation system with regards to movement. Perhaps this is possible; a better place to ask TGB questions is in that particular Forum?