Quantcast
Channel: Questions in topic: "enemy"
Viewing all articles
Browse latest Browse all 1488

Need help for programming the killing of an enemy

$
0
0
How do I make a code in C# that basically says, "if a float (named health) changes from a positive number to a negative number or if the number changes to 0, then.............)" I didn't want to say "if health <= to 0," because then that makes it so that if you are shooting the dead body, it will kill the enemy again.

Viewing all articles
Browse latest Browse all 1488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>