All,
I'm making a basic strategy game for my kids and an working on coding my enemies to select which player to attack. I'd like to set it up so that they attack the closest player that has the most health (this way they don't get too frustrated by dying a lot and giving up). I've figured out how to find the closest hero and highest health independently, but does anyone have any thoughts on how I might go about combining the two? Thanks in advance!
Sent from my Nexus 5X using Tapatalk