• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

SOLVED Will place_meeting work with child objects?

T

TangerineDog

Guest
If I check for only one object in my collision script but want the same thing to happen upon collision with other objects as well...
will making them children of that one object do the trick?

Very unexciting code example:
GML:
if(place_meeting(x+hspeed, y, obj_parentcollisionobject))
 

Alice

Darts addict
Forum Staff
Moderator
Yes, for the purposes of checking for collisions, existence, with statement etc. parent object covers all descendant objects as well.
 
Top