Added another fix for collision on boxes

main
Skyball2000 2023-03-29 16:21:11 +02:00
parent 674cef3831
commit 720d5b9b05
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class PhysicsElementsHandler:
if len(players) > 0: if len(players) > 0:
player = players[0] player = players[0]
for sprite in skip_sprites: for sprite in skip_sprites:
if sprite.position_scale.position[1] - player.position_scale.position[1] < 100: if sprite.position_scale.position[1] - player.position_scale.position[1] < 200:
skip_sprites.remove(sprite) skip_sprites.remove(sprite)
sorted_dynamic_sprites = [sprite for sprite in sorted_dynamic_sprites if sprite not in skip_sprites] sorted_dynamic_sprites = [sprite for sprite in sorted_dynamic_sprites if sprite not in skip_sprites]