def playermove(self,dice_status):
self._position += dice_status
'''i want to Add some pauses at each step so
it doesn't look like it flashed past'''
def playerlocate(self,screen):
if self._position <= 19:
screen.blit(self._image, mapCoordinate[self._position])
elif 19 < self._position <= 30:
screen.blit(pygame.transform.rotate(self._image,-90),mapCoordinate[self._position])
elif 30 < self._position <= 48:
screen.blit(pygame.transform.rotate(self._image, -180), mapCoordinate[self._position])
elif 48 < self._position <= 54:
screen.blit(pygame.transform.rotate(self._image, -270), mapCoordinate[self._position])
else:
screen.blit(pygame.transform.rotate(self._image, -270), mapCoordinate[self._position-55])
self._position -= 55
mapCoordinate=[[1184,773],[971,873],...] #I have 55 map grids
#self._position is a attribute of the player,It corresponds to the serial number of each grid on the map.And I also have a function to convert _position to coordinates and draw the player on the map. I tried to add some time control but I don't know how to do it.Please