Detecting multiple collisions

KC_GamesKC_Games Member, PRO Posts: 86

How do I detect multiple collisions? I am making a game where enemies are struck with arrows that stay impaled in them. I set up an actor integer called "power" which is 2 and every time an arrow collides with the enemy, I want the power to go down by 1. If 0, destroy this actor. The power goes down to 1 when an arrow hits, but stays there and does not go below 1. I believe this is because the arrow is still stuck in the enemy and is confusing the collision detection. As you can see in image below, the enemy with 2 arrows in him should have a power of 0, but has 1. Does anyone have any ideas how to resolve this?

Comments

Sign In or Register to comment.