How to Make Video Games 30

Legend of Zelda CloneIn this part of my video game tutorial I will continue making Zelda. I’ll focus this time on something I have not covered before which is how to create the AI for our villain so that he will travel on his own around the game board looking for Link. The villain will travel around using very few system resources. He will be able to locate Link any place on the map. We will use multidimensional arrays to store travel nodes. We will also learn how to find out which node game objects are closest to.

All of the code used follows the video below.

If you like videos like this consider donating $1, or simply turn off AdBlocker. Either helps a lot.

Code From the Video

Villain.cs

Leave a Reply

Your email address will not be published.

Google+