- self.blink = True
- self.loadNext(event)
-
- def update(self) :
- surface = pygame.display.get_surface()
- surface.blit(self.image, self.rect)
+ if self.blinkMode :
+ self._blinking = True
+ self.loadNext(event)
+ else :
+ self.image = self.images[0]
+
+ @event_handler(pygame.MOUSEMOTION)
+ def move(self, event) :
+ self.rect.move_ip(event.rel)