1
Support / Movement of an animated Sprite gets choppy
« on: May 13, 2013, 11:20:07 pm »
Hello people, i have a little problem here. I have created an Animated Sprite and it is giving me some trouble.
I'm using this code to move the animated Sprite (a game character)
When the character speed is 0 (no movement) , the animation is alright , but if i increment the speed and it starts to move , the animation start to get some weird choppy effect, like it skips some sprites or something , and as the speed gets up , the effect gets worse.
What can be the problem here? thanks for your time and help
I'm using this code to move the animated Sprite (a game character)
Code: [Select]
//Movement Speed
float fAmtToMove = iPlayerSpeed * Time.deltaTime;
// Movement
transform.Translate (Vector3.right * fAmtToMove);
When the character speed is 0 (no movement) , the animation is alright , but if i increment the speed and it starts to move , the animation start to get some weird choppy effect, like it skips some sprites or something , and as the speed gets up , the effect gets worse.
What can be the problem here? thanks for your time and help