Erayd
Member
I'm looping through all of the available enemy objects currently existing in the room and destroying them one by one. In theory anyway, since that's not what's happening. Actually for some odd reason only some of the enemy objects are disappearing. Any thoughts as to why?
Code:
if(instance_exists(obj_Enemy)){
var k = 0;
var _mob = 0;
for(k = 0; k < instance_number(obj_Enemy); k++){
_mob = instance_find(obj_Enemy, k);
with(_mob) instance_destroy();
}
}