Strange Bug with DamageCollider

Hi

First post here, I’m on the “How to be a loser” and noticed that not all attackers activate the Damage Collider, so maybe double amount of attackers pass through the collider before the player lose the game.

It seems random, happening with both attacker prefabs. Attached image showing how many passed through and only lost 2 out of 3 lives.

THanks in advance for any help. :slight_smile:

Hi AvonWolf,

Welcome to our community! :slight_smile:

Do your attackers have a Rigidbody2D component attached? If so, you could try to set their Sleeping Mode to “Never Sleep”. Maybe that will fix the issue. If not, please let me know and share more information on what you did/have in your project.

Hi Nina

Thanks for your reply.
Actually manage to find the mistake, which was the Box Collider 2D on the Damage Collider area. It was added but was so small that you couldn’t see it without zooming in, so it looked like it was the right size. :slight_smile:

Great course so far. :slight_smile:

Good job on finding the culprit! :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms