Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: sprites movement stuttering  (Read 2379 times)

0 Members and 1 Guest are viewing this topic.

andreaszdw

  • Newbie
  • *
  • Posts: 26
    • View Profile
sprites movement stuttering
« on: March 06, 2009, 08:18:49 am »
If I move my sprites, it looks always like stuttering. What could be the problem?

How could I do smooth movement?

(The FPS of the program is 2000 or, the speed of my system couldn't be the problem)

The source is to find here:

http://code.google.com/p/sallb/source/browse/#svn/trunk

Bye
Andreas

dunce

  • Jr. Member
  • **
  • Posts: 77
    • View Profile
sprites movement stuttering
« Reply #1 on: March 06, 2009, 09:13:27 am »
Quote
How could I do smooth movement?

1. Do not use large steps while moving
2. Do not update sprite position each frame. Use time elapsed since last step to decide if you need to move sprites or not.

Maybe this helps.  :)