Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavesilver <nibor123@gmail.com>2010-08-03 20:00:05 (GMT)
committer davesilver <nibor123@gmail.com>2010-08-03 20:00:05 (GMT)
commit21041487cdde42555fe31c58885a1e8aa6f5381e (patch)
tree489ea1c8b561e2d2e769f1820b5c57609c94c61c
parentb37d6ffceb708db9747c1d9eb65c7118294bead3 (diff)
Working on integration
-rw-r--r--MAFH2/fortuneengine/DrawableObject.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/MAFH2/fortuneengine/DrawableObject.py b/MAFH2/fortuneengine/DrawableObject.py
index 6c4163d..70bc2ae 100644
--- a/MAFH2/fortuneengine/DrawableObject.py
+++ b/MAFH2/fortuneengine/DrawableObject.py
@@ -12,7 +12,12 @@ class DrawableObject(pygame.sprite.Sprite):
self._origImages.append(images[i].convert_alpha())
self._start = pygame.time.get_ticks()
- self.image = self._images[0]
+
+ if transparent == False:
+ self.image = self._images[0]
+ else:
+ self.makeTransparent(transparent)
+
self._last_update = 0
self._frame = 0
self.animations = {}
@@ -39,8 +44,6 @@ class DrawableObject(pygame.sprite.Sprite):
self.animations["anim1"] = [0, len(self._images)]
self.goToAnim("anim1")
-
- self.makeTransparent(transparent)
def repopulateImages(self, newImages):