- Home /
Question by
LaaGostim · Apr 15, 2021 at 12:00 PM ·
collisioncollidertriggercollider2dcollision2d
Have 2 colliders on same trigger (and hit the first to enter)
Hello, I am making a rhythm game, but there's problem, whenever I have 2 colliders hit the same trigger, one of them works normally, while the other keeps scrolling
These notes are in a position that work As you can see, when they scrolled down, only one is touching the trigger, so if I hit the current note and then the one above, everything is normal
This does not work Both notes are hitting the trigger, the note above is going to get destroyed and give me score, while the other will keep scrolling down and make me lose.
All I want is to be able to hit the first note that enters THEN the second with no problems, but the OnTriggerEnter2D will only accept the last one to enter making it impossible to hit the first
Comment