Skip to content

Commit

Permalink
issue pythonarcade#53 fixed rapid footstep
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianWilder committed May 27, 2022
1 parent fb579eb commit e279642
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rpg/sprites/player_sprite.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ def __init__(self, sheet_name):
def on_update(self, delta_time):
super().on_update(delta_time)

if not self.change_x and not self.change_y:
self.sound_update = 0
return

if self.should_update > 3:
self.sound_update += 1

Expand Down

0 comments on commit e279642

Please sign in to comment.