GMS 2 Check all objects

unbrazer

Member
Hey, i was wondering if the is a way to check if one variable is equals to 1,for example, in all objects of one type:
if(all of object one type.variablenamehere==1){
then do something
}
 
With loop might help:

GML:
var proceed = true;
with (some_object) { // with (all) is also valid
    if (variable_name != 1) {
        proceed = false;
        break;
    }
}

if (proceed) {
    // do something
}
 
Top