Is there a better way to indicate death rather than always referencing isAlive?

Seems clunky is all.

Hi,

Yes, you could check the player’s health whenever it is decreased and call the Die() method (or whatever you have in your code) when your code notices that the health is too low for being alive. Since you know exactly when the player’s health decreases, you know when he is able to die.


See also:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms