Skip to content

Commit

Permalink
Merge pull request #65 from DamianWilder/main
Browse files Browse the repository at this point in the history
Fixed issue #53 rapid footsteps
  • Loading branch information
pvcraven authored May 27, 2022
2 parents f996535 + 8d3e22b commit e71ba00
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 e71ba00

Please sign in to comment.