• 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!

GML Need to know if there is a way to do this

J

Jugernaut73

Guest
In Game Maker Studio 2 you can make groups for your objects, sprites, ect. My question is, is there a way to use those said groups, in GML?
Example :
if (place_meeting(x,y,Bullets))
{
instance_destroy
}

Instead of making an if statement for each individual Bullet type, I want to make a single if statement that works for any bullet in that group.
 
Make an object called oBulletParent.

Make all the other individual bullet types have oBulletParent as their parent.

Then use oBulletParent in your place_meeting() function.
 
Top