I get no error when I run your code. What yours python and pygame version.
My python version 3.7.3, pygame version 1.9.6.
All my math is base on delta not being divide by 1000.
Could try: On line 65.
My python version 3.7.3, pygame version 1.9.6.
All my math is base on delta not being divide by 1000.
delta = clock.tick(60)You also going to want to change original surface. To alpha state and copy original image not assign.
self.original_image = pygame.Surface((10, 20), pygame.SRCALPHA) self.original_image.fill((100, 200, 200)) self.image = self.original_image.copy()
Could try: On line 65.
self.rect.center = tuple(map(int, self.position))
99 percent of computer problems exists between chair and keyboard.