Creating Simple Enemy AI to Chase the Player (Unity Tutorial | 2D Top Down Shooter)

Опубликовано: 03 Ноябрь 2025
на канале: Ketra Games
32,466
572

In this Unity 2D tutorial we're going to look at how to create an enemy with some basic AI, that chases the player if they get too close.

This is the fourth video in our series showing how to make a full top down 2D shooter game in Unity.

The playlist for this series can be found here
►    • Unity 2D Top Down Shooter for Beginners  

The project files are available to our patrons here:
►   / 75818131  

Want to follow along? This project is a good starting point
►   / 74343725  

The final script can be found here
► https://dotnetfiddle.net/fwnJ6E

The assets used in this video can be found here
► https://tokka.itch.io/top-down-basic-set

Help support our work:
► Patreon:   / ketragames  

Follow us:
► Ketra Games: http://www.ketra-games.com
► Patreon:   / ketragames  
► Twitter:   / ketragames  
► Facebook:   / ketragames  

Introduction - 0:00
Creating the Enemy Game Object - 00:30
Creating the Player Awareness Script - 04:12
Creating the Enemy Movement Script - 07:14
Trying it out - 11:55
Summary - 12:24

#KetraGames #LearnUnity #UnityTutorials #UnityTips