GMS 2 Check colision between 2 specified objects

Suzaku

Member
I know that the place_meeting function only checks for colision between a specified object AND the object who called the function. I wonder if there is a function that does the same thing but using 2 specified objects in the parameters, this way I can check for colision from another object not involved in that colision. Is that possible?
 

FrostyCat

Member
Put place_meeting() inside a with block.
Code:
with (A) {
  if (place_meeting(x, y, B)) {
    //...
  }
}
Important: A and B must be in local or global scope, not instance scope.
 
Top