Team Allies 2
|Top Previous Next|
This month's snippet continues to add features to the breadcrumb AI code we've discussed about in the previous issue of the magazine. This time we will see the player working together with a healer, a guy that restores player's health, allowing it to kill several bad, ugly monsters.
You will know that the healer does its job when you're going to see a particle effect on top of player's head.
The healer can heal itself as well, but its top priority is the player; if the player is healed, the healer can heal itself (if needed). Make sure that the healer doesn't die; otherwise, the player will be on its own.
Don't forget to check out the code; it is well commented, as always.