Worked on task 4.

This commit is contained in:
Sakse Dalum
2012-08-08 22:40:27 +02:00
parent 67611d3ad1
commit 48a4a2ee3b
6 changed files with 157 additions and 31 deletions

View File

@@ -56,7 +56,7 @@ class Level(object):
if not self.paused:
for obj in self.objects:
obj.update(e, t, dt)
if hasattr(obj, 'update_alpha'):
if self.player.is_moving and hasattr(obj, 'update_alpha'):
obj.update_alpha()