Game Development Reference
In-Depth Information
Getting ready
Technically, evade is to flee from the target to the safe location. The evade behavior will re-
main the same as the flee behavior, the only difference is that it will not run away infinitely
from the target.
In this approach, when the target location is inside the safe range of the player, then the
player will flee till the target location is not outside its safe range. So, in our case, we will
make the player flee till the player is far from the target, and then its velocity will be
ramped down to zero.
Search WWH ::




Custom Search