RC1: Animation builder - play time wrong
by Jason McIntosh · in Torque Game Builder · 06/01/2006 (3:34 pm) · 3 replies
I used the animation builder for the first time and set the Total Play Time to 0.5 (half a second, right?) with 4 frames from one of the example image maps.
But the play time incorrectly "snapped" to 0.1 instead, and anything under 1 seems to snap to 0.1, whether it's 0.2, 0.5, 0.9 or whatever. Any value over 1.0 behaves as it should.
But the play time incorrectly "snapped" to 0.1 instead, and anything under 1 seems to snap to 0.1, whether it's 0.2, 0.5, 0.9 or whatever. Any value over 1.0 behaves as it should.
About the author
Torque 3D Owner Matthew Langley
Torque
function AnimationBuilder::enforceNumberFormat(%num) { %firstChar = getSubStr(%num, 0, 1); if(%firstChar $= ".") { %num = "0" @ firstCharm; } else if(%firstChar == 0) { %num = 0.1; } return %num; }with this function
function AnimationBuilder::enforceNumberFormat(%num) { %firstChar = getSubStr(%num, 0, 1); if(%firstChar $= ".") { %num = "0" @ firstCharm; } else if(%num == 0) { %num = 0.1; } return %num; }Seems I was having it compare the first character to 0 to revert it to 0.1 (since animations go wonky at 0 time)... i nstead I should've been comparing the whole num :)