From 720d5b9b0518a5032fbd478f17e6ee2e5e2b1e94 Mon Sep 17 00:00:00 2001 From: Skyball2000 Date: Wed, 29 Mar 2023 16:21:11 +0200 Subject: [PATCH] Added another fix for collision on boxes --- project/physics/PhysicsElementsHandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/physics/PhysicsElementsHandler.py b/project/physics/PhysicsElementsHandler.py index ecb5274..8ae9aba 100644 --- a/project/physics/PhysicsElementsHandler.py +++ b/project/physics/PhysicsElementsHandler.py @@ -68,7 +68,7 @@ class PhysicsElementsHandler: if len(players) > 0: player = players[0] 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) sorted_dynamic_sprites = [sprite for sprite in sorted_dynamic_sprites if sprite not in skip_sprites]