If 2 instances of object B are overlapping 1 instance of object A, how would I check a variable of both object B?
To better explain:
In my top-down project I have 'ground' sprites for the ground of each room (the ground of each room is separated). And between two different grounds there is a door. So the door is overlapping 2 grounds.
Each ground has a 'room' variable that stores its IDD, to detect witch room the player is.
I wanna know the 2 'room' values of both grounds that the door is overlapping. How would I?