4. Unity3d Tutorial - Enemy AI 2/2

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
25,475
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 9, 2010

Come visit us at: http://www.burgzergarcade.com

In this tutorial, we will finish up the start of our enemy ai script. By the end of this video, we will have an enemy that is capable of finding the player, turning towards them, and then moving towards them.

Community donated assets can be found under the Educational section: http://www.burgzergarcade.com/catalog

Save time typing out the scripts, or just buy me some coffee: http://www.burgzergarcade.com/product/tutorials/hack-and-slash-tutorial-scripts

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (BurgZergArcade)

  • By far the best tutorials of Unity on YouTube! You're awesome dude!

  • @tectful Glad you are enjoying them. Tell your friends :)

  • Great tutorial! I like the way you go through all the coding, instead of blasting through it at mach 12 :P. There is a problem though, once my enemy had reached me, he kind of slides under and pushes me into the air straight up, any suggestions?

  • @CarnivorousFood This is just the beginning, there is  a lot more to do before the game is done.

  • I cant open up mono development! I set the script editor to mono development, and then I hit sync mono develop, then I try to open my health bar, or whatever kind of script I try to open, but it wont open it.

    can you help me?

  • @Crioxide1 I have no idea what is wrong. It works for me.

see all

All Comments (127)

Sign In or Sign Up now to post a comment!
  • AWESOME TUTORIALS!

  • @TheFleming98

    add these two lines after transform = Quaternion.Slerp(.....);

    transform.rotation.x = 0; //or to whatever initial rotation it was

    transform.rotation.z = 0;

    There might be an easier way and more efficient, but that does the trick :)

  • I was an idiot and didn't install MONODevelop with my Unity

  • Awesome! Can u make a tut where the enemy shoots at u instead? For like a fps? Thanx :)

  • he can go inside me ._. it's a little problem that you should fix .__.

  • @Crioxide1 Did you install monodevelop into C:/programfiles(x86)/unity/mon­odevelop/ ?

  • How can you make it so that the cube only rotates on the X axis, because when i jump the cube rotates upwards :P

  • That Cube is really freaky. Imagine if a cube chased you around in real life! :O

  • oaaaaaaaaaaf it says "Script EnemyAI has not finished compliation yet.

    Please wait until compliation has finished" i cannot fix it im sure i did everything right i saved it i even did watched video again but no nothing made any change on it

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more