I have a game where an object moves and when it hits a sprite it dies, but i have a box collider where it runs on but in my script when it hit’s a collider it supposes to die, so then when play the game it dies instantly. What can I do so it doesn’t die on the box collider it runs on
Have you tried to use different layer settings on the different objects, so basically: For the enemy or hazard layer, you check if the collider belongs to them and then dies, so if hitting a collider with another layer it will survie and be happy
I didn’t really understand