From f6bf489500f4fa520df76aa7f72cc5562837cfe1 Mon Sep 17 00:00:00 2001 From: Skyball2000 Date: Wed, 29 Mar 2023 16:48:09 +0200 Subject: [PATCH] Another fix for boxes --- project/physics/sprites/PlayerSprite.py | 1 + 1 file changed, 1 insertion(+) diff --git a/project/physics/sprites/PlayerSprite.py b/project/physics/sprites/PlayerSprite.py index ff293d8..de72bb1 100644 --- a/project/physics/sprites/PlayerSprite.py +++ b/project/physics/sprites/PlayerSprite.py @@ -55,6 +55,7 @@ class PlayerSprite(DynamicSprite): if self.is_potentially_stuck == 2: print('stuck') self.position_scale.position = (self.position_scale.position[0] - 5, self.position_scale.position[1]) + self.is_potentially_stuck = 0 if tick_data.key_manager.is_keymap_down(KeyManager.KEY_RIGHT): self.last_directional_input = KeyManager.KEY_RIGHT