From e279642df59e16e3d3810f7fc429d9f8e525a9ff Mon Sep 17 00:00:00 2001 From: Damian Wilder Date: Fri, 27 May 2022 16:06:27 -0400 Subject: [PATCH] issue #53 fixed rapid footstep --- rpg/sprites/player_sprite.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rpg/sprites/player_sprite.py b/rpg/sprites/player_sprite.py index 97104053..f07d19c1 100644 --- a/rpg/sprites/player_sprite.py +++ b/rpg/sprites/player_sprite.py @@ -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