GMS 2 [SOLVED]instance destroy in line ?

MicroKiss

Member
Hello there,
I'm trying to make a tetris game in gamemaker 2 and I would like to know if it's possible to destroy instances in fixed y position ? ( this is for clearing a line in tetris)

for exapmle if an object name's == THIS and it's Y coord == this, then destroy it .


Is it possible ?
 

MicroKiss

Member
NVM I've just found the answer :
Code:
if ( count == 9)then {
with(obj_Block_Solid){
if ( y == other.y){
instance_destroy();}
else if ( y < other.y) {
y += 32;
}
}
}
 
Top