Hello, I am having an incredible frustrating problem where I cannot check collisions between two objects of the same family correctly.
My goal is to have a functional 2.5d z-axis within Construct 2, and while I have the basics for collision checking down, updating the z-axis via gravity is proving rather difficult.
What I am attempting to do is check if a member of the family of sprites with the special variables concerning z-axis, z-height, etc, is standing on top of another member of the same family. If they overlap at an offset that FACTORS IN THE FAMILY-SPECIFIC Z-AXIS VARIABLE then the object ON TOP of the other object knows not to fall through the object under it.
My main issue is that when using a For Each loop, the instance picked from the family cannot interact with other instances in the family via collision checks because the overlap check will only work on the instance that is ALREADY PICKED - the one selected via the For Each loop.
I have seen workarounds to checks between two of the same object that require using a second family, but that is undesirable for me as the overlap check refers to a family-specific variable.
What the hell do I do? Something like this would work if the overlapping object (second/index 1 instance) was pickable IN ADDITION to a set object picked in the For Each loop, but as far as I know that's not the case.
Sorry for the seemingly overcomplicated issue, if any clarification is needed on what my problem is or what I plan on using the code for please let me know, I am desperate for help.