Lets say I have:
A overlaps B -> set A.somevar to 1
Else -> set B.somevar to 0
The else statement will never run if a single A is overlapping B. What I want it to set any remaining A not picked by the first event and set somevar to 0.
I can't afford to duplicate collision checks or run for eachs. Both are costly from a performance standpoint so the best I have is:
EveryTick
---Set A.somvar to 0;
A overlaps B
---Set A.somvar to 1;
A.somvar = 1?
---Do the things
A.somvar = 0?
---Do the other things.
Its seems verbose, has more events than it should, and still duplicates the number of checks. Is there now built in In case of A do this or B do that?