Another fix for boxes
parent
cf94c451e2
commit
f6bf489500
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue