So I thought I could use " ! " in some way but is there a function to skip a method or something like it?
if(player.isDestroyed == true) {
}
and if it is true, I want it to skip drawplayer.
So I thought I could use " ! " in some way but is there a function to skip a method or something like it?
if(player.isDestroyed == true) {
}
and if it is true, I want it to skip drawplayer.
if(!player.isDestroyed) { // in other words player is alive
drawplayer();
}
else {
// code to execute if player is destroyed
}
if(player.isDestroyed == false)
// this equals " ! player.isDestroyed"