I'm trying to make the gravity a bit slower, like
Dog.rect.y += 0.5 print (Dog.rect.y) screen.blit(background, (0, 0)) screen.blit(spikeUp0.image, (0, 0)) screen.blit(spikeDown0.image, (0, 436)) screen.blit(Dog.image, (Dog.rect.topleft)) pygame.display.update()
But the dog floats. The minimum I get set to
y 1 with
rect methods. How can I make it slower?
Here is the complete code in GitHub Gist