How to guarantee that only one trigger is activated at the same time?
hello, first question :) I am doing a mario clone for educational purposes, I already have some functionality but now I have a problem that i do not know how to solve. I have two types of blocks, the normal blocks and the question mark block, when mario jumps in the middle of the blocks both triggers are being touched and activated, that makes sense but it's not the result i want. I want that mario only activates one trigger at the time, like the original video game. Mario has a box collider, and the blocks have a box collider and a edge collidar as trigger. The box collider is there so mario can stand on the blocks and the edge colliders purpose is to activate the scripted function. I am really stuck and need some advice, I was thinking i should use some kind of raycast to guarantee that only one trigger is activated but i do not know if that is a good practice. thank you in advance.
Your answer
Follow this Question
Related Questions
If OnTriggerEnter and OnTriggerExit simultaneously? 0 Answers
Collision2D enable/disable problem 1 Answer
When is OnTriggerExit2D called? 1 Answer
2D platformer Hide Action not working 0 Answers
Collision Triggers at Random 1 Answer