Oct-31-2019, 09:33 PM
I did it like that now, and it doesn't work:
.... def update(self): self.pos += self.vel * self.game.dt self.rect.center = self.pos if self.game.player.weapon == 'boomerang': now = pg.time.get_ticks() self.pos += self.vel * self.game.dt self.rect.center = self.pos if now - self.last >= self.cooldown: self.pos -= self.vel * self.game.dtStill the same. First moving slow, then faster.