I want to compare the X and Y position of two objects. However, I want to make sure if the X and Y position of two objects in the same group occupy the same space then it triggers a set of events.
One way to do that would be to compare if X and Y of object that have different instance ID to each other are equal to each other.
How do you go about writing that code? For now I am faking this by registering InstanceID with the following at the end of every turn (but the code is still not working because it doesn’t know how to compare X and Y of a group with one instance ID vs X and Y of the same group with a different instance ID).
I can maybe do it with collision (but that seems like a cheap way to code ) and also because of how groups (families) work, there is a chance it won’t work.