Game Development Community

How do i dynamically change animation speed?

by Tom Spilman · in Torque Game Builder · 06/09/2006 (8:23 am) · 3 replies

I'm trying to vary the speed of an animation that is currently playing on a t2dAnimatedSprite. So far i've seen no allowance in the API for this. I've tried changing the t2dAnimationDatablock to change the play time, but i don't see a way of specifying a start time when i apply it to make the transition smooth.

Anyone have any ideas?

It seems like the only way to do it, and it wouldn't work really great, would be to maintain the animation time manually and set the active frame yourself. Yuck!

About the author

Tom is a programmer and co-owner of Sickhead Games, LLC.


#1
06/12/2006 (2:56 am)
Bump!
#3
06/12/2006 (3:35 am)
Thanks for the link Michael. I guess this pretty much confirms that there isn't a way to do this short of a code change.