What You’ll Learn in Part 1:
How to set up your enemy GameObject in Unity 6
Create and hook up enemy animations (Idle & Walk) using the Animator
Write clean patrol logic with idle pauses between points
Set up patrol points and flip the sprite direction based on movement
Create a hurtbox that damages the player on contact
By the end of this video, your enemy will patrol back and forth, play animations, and be able to damage the player!
This video is part of our full 2D platformer series using Unity 6 — be sure to check out the earlier videos for player movement, health systems, UI, and more!
Next video (Part 2): We’ll cover how to defeat enemies, trigger a death effect, and drop collectible items like score gems or cherries after they’re stomped!
Don’t forget to like, comment, and subscribe so you don’t miss the next part!
Music by Eric Matyas
www.soundimage.org
#UnityTutorial #Unity2D #Platformer #GameDev #EnemyAI #Unity6 #IndieGameDev #GameDevelopment
Voir sur youtube