Another fix for boxes

main
Skyball2000 2023-03-29 16:48:09 +02:00
parent cf94c451e2
commit f6bf489500
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ class PlayerSprite(DynamicSprite):
if self.is_potentially_stuck == 2: if self.is_potentially_stuck == 2:
print('stuck') print('stuck')
self.position_scale.position = (self.position_scale.position[0] - 5, self.position_scale.position[1]) 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): if tick_data.key_manager.is_keymap_down(KeyManager.KEY_RIGHT):
self.last_directional_input = KeyManager.KEY_RIGHT self.last_directional_input = KeyManager.KEY_RIGHT