From 5a8e06aef8628638f82a9732ae95945a1565a854 Mon Sep 17 00:00:00 2001 From: davesilver Date: Tue, 03 Aug 2010 20:01:09 +0000 Subject: Working on integration --- diff --git a/MAFH2/fortuneengine/DrawableObject.py b/MAFH2/fortuneengine/DrawableObject.py index 70bc2ae..a06f485 100644 --- a/MAFH2/fortuneengine/DrawableObject.py +++ b/MAFH2/fortuneengine/DrawableObject.py @@ -12,12 +12,6 @@ class DrawableObject(pygame.sprite.Sprite): self._origImages.append(images[i].convert_alpha()) self._start = pygame.time.get_ticks() - - if transparent == False: - self.image = self._images[0] - else: - self.makeTransparent(transparent) - self._last_update = 0 self._frame = 0 self.animations = {} @@ -29,6 +23,10 @@ class DrawableObject(pygame.sprite.Sprite): self.xSize = self.image.get_width() self.ySize = self.image.get_height() self.rect.topleft = (x,y) + if transparent == False: + self.image = self._images[0] + else: + self.makeTransparent(transparent) if textfileName != '': -- cgit v0.9.1