Game Development Reference
In-Depth Information
Creating the enemy movement with the AI
script
In the previous section, we have the waypoint set up for our enemy to move, but we don't
have the enemy yet. In this section, we will create the script to control it by using a concept
that was used in Project 5 , Build a Rocket Launcher! . This AI script will inherit from
CharacterClass that comes with the package.
Note
If we open CharacterClass , which is located at Chapter6 | Scenes | C# | Actor (for C#
users) or Chapter6 | Scenes | JavaScript | Actor (for JavaScript users), we will see that
there is a class that contains the methods and parameters that we have used in Project 5 ,
Build a Rocket Launcher! .
Search WWH ::




Custom Search