Skip to content
UdemyArtificial IntelligencePaid courseBeginner levelCertificate

The Beginner's Guide to Games AI with Unity 6.2+ (Udemy.com)

A practical guide to programming non-player characters for games in the Unity Game Engine with C#

Created by: Penny de Byl

Last updated February 2026

Our take

Based on the ratings of 2,871 students and a sample of their written reviews. No course pays to be reviewed.

This is a systems course, not a game-jam tutorial. Penny de Byl walks through the math and logic behind non-player character behavior in Unity: vectors, waypoint systems, navmeshes, the A* algorithm, crowds, flocking fish, finite state machines, and behavior trees. Each topic gets a follow-along workshop with starter files and a working solution, plus quizzes along the way. At 30.9 hours it covers a lot of ground, and it labels itself Beginner but really means beginner to AI, not beginner to Unity or C#.

Reviewers consistently single out de Byl's teaching style: clear explanations, code that's actually walked through rather than just typed, and a pace reviewers describe as neither too dense nor too simple. Several say the course took them from zero understanding of game AI to feeling genuinely capable of building it themselves. The one real complaint in the sample is support: one student describes an open help request going unanswered for three months, which is worth flagging if you expect quick instructor responses.

For anyone comparing AI-focused Unity courses, this one leans academic in the best sense, grounded in graph theory and vector math rather than copy-paste scripts, from an instructor with a PhD in AI and two published books on the topic. It updated in 2026, so the content isn't stale. If prerequisites fit, reviewers make a strong case this is worth the time.

Best forUnity developers who already code in C# and want NPCs that do more than walk into walls.
Skip it ifYou've never touched Unity or C# before, since this assumes both going in.

Pros

  • Covers waypoints, navmeshes, A*, flocking, FSMs, and behavior trees in one course
  • Every workshop ships with starter files and a complete solution project
  • Instructor has 25 years teaching games development plus two published AI books
  • Reviewers repeatedly praise the pacing and clarity of the explanations

Cons

  • Labeled Beginner but requires existing C# and Unity knowledge
  • At least one reviewer reports a support request going unanswered for months
She's Brilliant I'm HalfWay through it and now I feel a deeper understanding of AI development in games
Nikoloi Ellis, a student

Fits developers already comfortable with C# and Unity's editor, not people new to either.

icon
What you will learn

  • Design and program NPCs with C# in Unity
  • Explain how AI is applied in computer games
  • Implement AI-related Unity Asset plugins into existing projects
  • Work with a variety of AI techniques for developing navigation and decision making abilities in NPCs

How it compares

Against the other 205 rated Udemy courses in Artificial Intelligence on CourseDuck:

  • Rating4.6 out of 5higher than 79% of them
  • Reviews2,871#47 of 206 by number of reviews
  • Length30.9 hourslonger than 95% of them
  • Last updatedFebruary 2026more recently than 76% of them

icon
Quality Score

Content Quality
/
Video Quality
/
Qualified Instructor
/
Course Pace
/
Course Depth & Coverage
/

Overall Score : 92 / 100

icon
Course Description

Do your non-player characters (NPCs) lack drive and ambition?  Are they slow, stupid and constantly banging their heads against the wall? Then this course is for you.  Join Penny as she explains, demonstrates and assists you in creating your very own NPCs in Unity with C#. All you need is a sound knowledge of Unity, C# and the ability to add two numbers together.

This course uses Unity Version 6.2+ LTS.

In this course, Penny reveals the most popular AI techniques used for creating believable character behaviour in games using her internationally acclaimed teaching style and knowledge from over 30 years working with games, graphics and having written two award winning books on games AI. Throughout, you will follow along with hands-on workshops designed to teach you about the fundamental AI techniques used in today's games.  You'll join in as NPCs are programmed to chase, patrol, shoot, race, crowd and much more.

Learn how to program and work with:

  • vectors

  • waypoints

  • navmeshes

  • the A* algorithm

  • crowds

  • flocks

  • animated characters

  • vehicles

  • and industry standard techniques such as GOAP (goal-oriented action learning).

Contents and Overview

The course begins with a detailed examination of vector mathematics that sits at the very heart of programming the movement of NPCs. Following this, systems of waypoints will be used to move characters around in an environment before examining the Unity waypoint system for car racing with AI controlled cars.  This leads into an investigation of graph theory and the A* algorithm before we apply these principles to developing navmeshes and developing NPCs who can find their way around a game environment.  Before an aquarium is programmed complete with autonomous schooling fish, crowds of people will be examined from the recreation of sidewalk traffic, to groups of people fleeing from danger. Having examined the differing ways to move NPCs around in a game environment, their thinking abilities will be discussed with full explanations and more hands-on workshops using finite state machines and behaviour trees.

The follow-along workshops included in the course come with starter Unity asset files and projects complete with solutions.  Throughout, there are also quizzes and challenge exercises to reinforce your learning and guide you to express your newfound knowledge.

At the completion of this course you will have gained a broad understanding of what AI is in games, how it works and how you can use it in your own projects.  It will equip you with a toolset to examine any of the techniques presented in more depth to take your game environments to the next level.

What students are saying about this course:

  • This has been my favourite Udemy-Unity course so far. It took me from literally 0% knowledge of how game AI is achieved, and took me to a whole new level. Waypoints, pathfinding, state machines, etc etc etc are all covered in-depth and will reveal the magic (spoiler alert: it isn't magic) behind making your computer characters seem like they really have a mind of their own.

  • Oh My God. I love her way of teaching things. I haven’t finished this course yet. But all i can say is that it is another brilliant course from her. Artificial intelligence by itself is a tricky thing to do. And before starting this course i never thought that i will understand anything in it. But i was wrong. With her style of teaching, you will learn how to move your characters in an ”intelligent“ way. This course is perfectly sliced and the pace is wonderful.

icon
Udemy Discount

The discount is applied through our link. Open the course from here and Udemy's current promotional price is applied at checkout on most courses, no code to type.

Some courses are excluded from Udemy's promotions. If the price does not drop, clear your browser cookies and use the button again.

icon
Instructor Details

Penny de Byl

Hi, I'm Dr Penny de Byl.  I'm a full stack developer of most things computer sciency and academic with a true passion for teaching.  I've been teaching others about games development, programming, computer graphics, animation and web design for over 25 years in universities in Australia and Europe at the full professor level. I've also consulted for Unity, SAE, the Australian Institute of Entertainment and Wikitude. My best selling textbooks including Holistic Game Development with Unity are used in over 100 institutions world-wide.  My graduates work at companies like Apple, Ubisoft, LinkedIn and Deloitte Digital.

I have an honours degree in computer graphics and a Ph.D. in artificial intelligence for games characters.  Over the course of my career I've won numerous awards for teaching excellence at the state, national and international levels including the Australian Learning and Teaching Council's Excellence in Teaching Award and the Unity Mobile Game Curriculum Competition. My approach to teaching computer science and related fields is project-based giving you hands-on workshops you can immediately get your teeth into.

I want you to leave my virtual classroom fully armed with a toolkit of skills for life-long learning.  I'm excited to now be focussing my efforts full-time on Udemy to bring my years of knowledge and experience to those eager to learn about technology.


icon
More courses by Penny de Byl

$10.99

$11.99

$13.99

$11.99

$10.99

$12.99

icon
More Artificial Intelligence courses

Free

Free

Free

$79.99

Free

icon
Reviews

4.6

2,871 ratings on Udemy

Select a bar to show only those reviews.Select the bar again to show every rating.

By 心地よい 狼 on 9/22/2026

ゲーム制作のコーディングをほぼAIに任せている立場からの感想ですが、それでも、ある程度の規模のゲームを開発するのであれば、こうした基礎的な勉強は必要だと感じています。 YouTubeなどを見ると、AIを使って短時間でFPSなどを作る動画もあります。プロトタイプを作るだけならそれでも十分だと思います。しかし、広く頒布するゲームを作るとなると、拡張性や信頼性、保守性も重要になります。そのため、実際に多くのゲーム開発で使われている実績のあるアセットやフレームワークを基礎として開発するのが、一つの堅実な方法だと感じています。 ただし、アセットは他人が書いた高度なコードの集合でもあるため、それを使いこなすには、結局「どういう仕組みで動いているのか」そのアセットの設計思想を理解する必要があります。 例えばUnityStoreでも、Behavior Tree、ステートマシン、GOAPなどを使うAI制御アセットがあります。これらの仕組みや設計思想を理解していれば、「この機能はどこに追加するべきか」「このアセットの設計思想から外れていないか」を判断できます。 実際、自分の場合も、使用しているアセットの想定されている設計思想の範囲内で実装している限り、現在のところ致命的な問題はほとんど起きていません。 AIがコードを書いてくれる時代になっても、基礎的なコーディングやアルゴリズム、設計の知識そのものが不要になるわけではなく、むしろAIや高度なアセットを正しく使うために必要になるのだと思います。

By Mert Sezer Ardal on 9/30/2023

The course started great but as it went along, the course's organization is starting to fall apart so it might be hard to track and understand since some concepts are being treated like they are magical things so you have to find your way through to understand the logic behind it. I'm not expecting fully perfect standardized code, but it might be good idea to stick with the same coding convention (naming, organizing files, codes, comments etc) throughout the course. Still, thank you for your effort. It's certainly beginner oriented, except maybe the last part. It might become a challenge for some beginners.

By Nebojsa Kovacevik on 11/16/2022

The first few sections were great, and well explained, but as the subject becomes more complex, the explanations get worse. The instructor just quickly writes out the code without any pauses or explanations. It almost seems as if they're just reading from an already written code, which is fine I guess, but I would expect a more thorough explanation of what's going on. The naming starts getting awful. As a beginner, a clear naming convention would be of an enormous help, but here it's almost as if there's no convention at all, and the overall naming is not very descriptive, so I had to go back and rewatch a lot of the material just to understand the code The pace at which the information is presented is very quick, so quick, in fact, that I had to either: - Watch through the whole video, and try to rewrite what I had learned. This was tough for me, as there is not enough time set aside for more beginner friendly explanation. I have to constantly rewatch the same lesson, just to remain confused. - Type along as the lesson is going, which is also tough, again, because of the pace. Not nearly enough time to understand what I'm typing, and it gets even harder with the fact that there is difference between what the instructor is saying, and what they're typing (which gets confusing and requires a rewind) It's a really fun subject, and I'm looking forward to the later sections, hoping that I can understand them better.

By 박경택 on 6/23/2021

"Penny's course is a total gem for anyone diving into game development! From the foundational concepts to all the nitty-gritty details, everything is explained with clarity and depth. The way she breaks down complex ideas makes it so accessible, and the hands-on approach keeps things engaging. Honestly, it’s a must-watch for devs looking to level up their skills. Highly recommend."

By Eden Zvi Schwartz on 11/1/2020

I really loved the explanations in this course, I learned a lot from you, but I didn't like to follow along concept of the course, I think that when you explain something new, I need to experiment the process myself in order to learned more about this, unfortunate the challenges at the end of each sections weren't enough, but overall, I really loved this course.

By Arn Mesa on 10/25/2020

I have experience in unity, and have just released my first commercial game on steam. I was looking for materials which will improve my understanding of game AI and this is just what I'm looking for. Everything is explained thoroughly and I feel guilty only paying $20.00 for this course when there are course way more expensive with less information. Thanks!

By Cezar Tipa on 10/10/2020

She is the best!

By Peter Davidson on 10/8/2020

While I'm still early in this course, I predict I will enjoy it and take more away then expected :) I like the presentation style, ease of use of the sample projects and the pace that is set early. Will update the review when I'm done but at this time I predict I will be taking the other courses offered from Penny on Udemy :)

By Mehmet Batuhan Kantarc on 9/23/2020

I exactly get what I want. 5/5

By Neil Waldron on 9/16/2020

(I have not Yet Finished) Great, informative but her teaching style leaves a lot to be desired. she opens a blank script and then instead of typing things she pastes int the entirety.

By John Knock on 9/16/2020

Brilliant course, though be careful with your expectations, will you be able to make a life like NPC for a AAA RPG absolutely not, its only a 12hr course. However will you learn about NAV meshes, Waypoints, A*, create a Tank that can follow you around and flee, play hide seek with a zombie, get lost in a sea of fish and be introduced to the world of simulation all broken down in to easy lessons, absolutely you will. I cannot recommend this course enough to anyone who just wants to learn more about Unity AI and be inspired for there future projects.

By Jianxin Liu on 9/9/2020

The teacher is great, within such a short time, already covered AI, Unity3D, C# and other important info for students to further dig in according to their interests. Her teaching is indeed amazing, above the expectations!

Showing 12 of 369 reviews