Game Development Reference
In-Depth Information
We can set up the walking ime and thinking ime by going the
AIController (Script) component in the Inspector view of AI and set up
the Thinking Time or Walking Time , as shown in the following screenshot:
Objective Complete - Mini Debriefing
We just created our AIController script by mixing two scripts, the CharacterControl
script from Project 4 , The Hero/Heroine Part II - Animaion and Controls , and the
New3PSController script from Project 5 , Creaing a Rocket Launcher .
We also added the new code secion to give our enemy some characterisics and make it
smart enough to shoot the player, run towards the player, jump when it hits the wall, and to
stop and walk ater a certain ime.
 
Search WWH ::




Custom Search