wrong in ',' and '.' pressed
grok-phantom opened this issue · comments
Lei Chen commented
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
Yuxiao Zhou commented
Fixed. Thanks!