Mercurial > skaapsteker
diff skaapsteker/sprites/player.py @ 160:d44a66ca3fd9
Don't stand in the air.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Tue, 05 Apr 2011 23:18:54 +0200 |
parents | 794565c8f9f4 |
children | f7fb2ee24c70 |
line wrap: on
line diff
--- a/skaapsteker/sprites/player.py Tue Apr 05 23:18:02 2011 +0200 +++ b/skaapsteker/sprites/player.py Tue Apr 05 23:18:54 2011 +0200 @@ -64,7 +64,7 @@ if abs(v_x) < 10: # Clamp when we're not moving at least 5 pixel / s self.velocity = (0, v_y) - self.running = False + self.running = not self.on_solid # if you're not on something you can't stand else: self.running = True self.set_image()