Hello Guest

Author Topic: Movement of an animated Sprite gets choppy  (Read 3421 times)

tekke

  • Newbie
  • *
  • Posts: 2
    • View Profile
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)

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

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Movement of an animated Sprite gets choppy
« Reply #1 on: May 13, 2013, 11:40:10 pm »
If you replace it with a sprite / cube, do you get she same choppiness? do you have a rigidbody on it?