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

Group Solid Floor Objects?

Okay, as of now I'm having to do this sort of thing in my gravity script with adding a new if statement for everything that can be a solid floor or ceiling

GML:
//find ground and land on it, setting vsp to 0 once feet are planted 

//normal floor block
if place_meeting (x, y+vspd, wall_block_obj) {

  
    while !place_meeting (x, y+sign(vdir), wall_block_obj) {
    y += sign(vdir)
    }

vspd = 0;
}



//moving block 1
if place_meeting (x, y+vspd, Moving_Platform_1_Obj) {

  
    while !place_meeting (x, y+sign(vdir), Moving_Platform_1_Obj) {
    y += sign(vdir)
    }

vspd = 0;
}


Is there a way to define a object as a part of a group so I can just check for that object group?
 
You should make an empty object which will be the parent, and make the wall and platform children of it, then you can just run the checks on the parent object.
Huh

I didn't realize it was that simple as the child objects inheriting checks relating to the parent

Does the parent object have to actually be in the room or is just existing within the game files enough?
 
Top