self.dir = random.randint(1,4)
amount = 20
if self.dir == 1:
self.direction = 'forwards'
dist = 0
while dist < amount:
self.rect.y += 1
dist += 1
This is what I have right now. However, the monster is still just jumping pixels instead of going one pixel at a time. I think this is because the move function for the monster is being called in the main function, which is set to clock.tick(60). Does anyone know what I could do to fix this?