Fangames > Programming Questions
Make object be destroyed if the player has any amount of secrets less than 8?
L4Vo5:
Or you could use a for statement. Because if ANY of the values is false the object gets destroyed, this is quite simple:
--- Code: ---for(i = 0;i<8;i++){
if global.secretItem[i] == false {
instance_destroy();
}
}
--- End code ---
Navigation
[0] Message Index
[*] Previous page
Go to full version