Changeset 160:d44a66ca3fd9


Ignore:
Timestamp:
Apr 5, 2011, 9:18:54 PM (9 years ago)
Author:
Simon Cross <hodgestar@…>
Branch:
default
rebase_source:
01f528bf9f01acde815e64e8ea2353a5d09eb162
Message:

Don't stand in the air.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skaapsteker/sprites/player.py

    r158 r160  
    6565            # Clamp when we're not moving at least 5 pixel / s
    6666            self.velocity = (0, v_y)
    67             self.running = False
     67            self.running = not self.on_solid # if you're not on something you can't stand
    6868        else:
    6969            self.running = True
Note: See TracChangeset for help on using the changeset viewer.