2D Toolkit Forum
2D Toolkit => Support => Topic started by: tekke 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)
//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
-
If you replace it with a sprite / cube, do you get she same choppiness? do you have a rigidbody on it?