Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/MAFH2/drawableobject/DrawableObject.py
diff options
context:
space:
mode:
Diffstat (limited to 'MAFH2/drawableobject/DrawableObject.py')
-rwxr-xr-xMAFH2/drawableobject/DrawableObject.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/MAFH2/drawableobject/DrawableObject.py b/MAFH2/drawableobject/DrawableObject.py
index d4054af..449741c 100755
--- a/MAFH2/drawableobject/DrawableObject.py
+++ b/MAFH2/drawableobject/DrawableObject.py
@@ -14,7 +14,7 @@ class DrawableObject(pygame.sprite.Sprite):
self._images.append(images[cnt].convert())
self._origImages.append(images[cnt].convert())
cnt += 1
- self.image = self._images[0]
+ self.image = self._images[0]
self._start = pygame.time.get_ticks()
self._delay = 1000 / fps
self._last_update = 0
@@ -56,7 +56,12 @@ class DrawableObject(pygame.sprite.Sprite):
self.image = self._images[self._frame]
cnt = len(animations)
cnt += 1
-
+
+ def goToFrame(self, frame):
+
+ self._frame = frame
+ self.image = self._images[self._frame]
+
def move(self):
self.xPos += self.xSpeed