Game Development Community

Animations running too fast in iTGB 1.4

by Richard Skala · in iTorque 2D · 09/13/2010 (12:33 am) · 2 replies

I recently moved to iTGB 1.4 (from iTGB 1.2), and I noticed that most (if not all) of my t2dAnimatedSprite object animations appear to be running much, much faster than what is described in the editor. Has anyone else had this problem?

#1
09/13/2010 (2:42 pm)
Not using 1.4, but I do know that refresh is now using CADisplayLink and that might be why you are seeing faster cycles?
#2
09/13/2010 (9:03 pm)
Actually, this turned out to be completely my fault. mCurrentTime was being updated twice in t2dAnimationController::updateAnimation because I added a check for paused animations and failed to see elapsedTime being added to mCurrentTime again later in the function. Oops!