It is updated using pygame groups in run But when my x change is smaller than 1, my sprite just doesn't move However when it is a negative value and larger than -1, it will move as intended.
class Enemy(pygame.sprite.Sprite):
def __init__(self, x, y):
pygame.sprite.Sprite.__init__(self)
self.image = pygame.image.load('img/blob.png')
self.rect = self.image.get_rect()
self.rect.x = x
self.rect.y = y
def update(self):
self.rect.x += 0.5