Mercurial > skaapsteker
changeset 160:d44a66ca3fd9
Don't stand in the air.
author | Simon Cross <hodgestar@gmail.com> |
---|---|
date | Tue, 05 Apr 2011 23:18:54 +0200 |
parents | 7b111e084aca |
children | 134ed5e026ae |
files | skaapsteker/sprites/player.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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()