Game Development Reference
In-Depth Information
Then, update the if condition from the above code to:
if (behaviourType == Seek || behaviourType == Flee)
5. The init function should look something similar to the following screenshot:
6. That's all. Now compile and run the project. You should be able to see the player
and when you tap anywhere near to the player, you will see the player will flee
from the tapped location.
Search WWH ::




Custom Search