I am making a co-op game and I’m struggling with the level complete system. I want it to only go forwards when both players collide with the level complete
in the level complete, you need a script that tracks when the level complete has been hit. It can be something as simple as adding a counter everytime something comes through and when the count is 2 the level is complete, but since collisions will detect multiple parts on a character, you could end up with 2 or more collisions from the first player.
I suggest when the collision/trigger with the level complete occurs, you look at what collided and determine which player completed. I’m sure you’re doing this anyway to determine who won or got their first. So, you can make a boolean for Player1 and one for Player2 and set them each to true when then trigger it, then if (Player1== true && Player2==true) LevelComplete();