Closed grok-phantom closed 6 years ago
if pressed[pygame.K_COMMA]: self.frame -= 1 if self.frame >= len(self.motions): self.frame = 0 if pressed[pygame.K_PERIOD]: self.frame += 1 if self.frame < 0: self.frame = len(self.motions) - 1
should be
if pressed[pygame.K_COMMA]: self.frame -= 1 if self.frame < 0: self.frame = len(self.motions) - 1 if pressed[pygame.K_PERIOD]: self.frame += 1 if self.frame >= len(self.motions): self.frame = 0
Fixed. Thanks!
should be