CryptidProductions
Member
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
Is there a way to define a object as a part of a group so I can just check for that object group?
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?