You can do time independant movement: xvel_per_frame = elapsed * xvel_per_second yvel_per_frame = elapsed * yvel_per_second
So in your update() function: def update(self): self.last = self.now self.now = pygame.time.get_ticks() self.elapsed = (self.now - self.last) / 1000. In your unit movement code: self.loc += self.vel * game.elapsed On Wed, May 20, 2009 at 8:16 PM, Yanom Mobis <ya...@rocketmail.com> wrote: > so i wrote this program, but the bullets coming out of the player's ship > move at an irregular speed, first fast, then slow, then fast again... but > they're supposed to move at a regular 12 pixels per frame. What am i doing > wrong? > > -- Jake