So I've been playing around in pygame, and I can draw and use the update
method to move my sprite, but when I clear the screen the sprite flickers. How do I move the sprite without the flickering
Here's the code:
class Sprite(pygame.sprite.Sprite):
def __init__(self, pos):
super(Sprite, self).__init__()
self.image = demon
self.rect = self.image.get_rect(center = pos)
def update(self, moveX, moveY):
self.rect.x += moveX
self.rect.y += moveY
screen.fill(BLACK)