Worked on task 4.
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user