Unity simple 2D Enemy AI Follow Tutorial

preview_player
Показать описание
Like and subscribe for more ai video

Patreon with fully explained c# scripts:

Silhouette Dash free download:

Join the discord community!:

Play my games! :

♪ Onion (Prod. by Lukrembo)
♪ Branch (Prod. by Lukrembo)
♪ Biscuit (Prod. by Lukrembo)
♪ Bread (Prod. by Lukrembo)
Рекомендации по теме
Комментарии
Автор

Gonna use this for enemy ai in an ACTUALLY simple game. Went camping, and had to spend the night chasing away raccoons. Was terrifying. Gonna turn it into a simple horror game using only free assets. (Unless I can't find a racoon asset, then I may have to modify a fox one I found, or just use the fox) Gonna take a break from my bigger projects, and make it. Just one non-procedual environment, 2-3 enemy ai, and 2 players.

rmt
Автор

This was incredibly clear and far less code used than some of the other videos on youtube. Love this.

EmporiumofSound
Автор

omg you are amazing, I saw a 17minute video trying to understand this and you made it so simple and you didn't even use raycast like omg

saramostafa
Автор

Amazing video man this helped me a lot, for my top down 2d RPG I wanted to lock rotation on the Y for smoother looking enemy movement.
To do this I removed the last bit of code
"transform.rotation = * angle);" this doesn't lock rotation but prevents your enemy from rotating 😊

Rosethesicko
Автор

Awesome this is just what i needed, like im making a simple 2d game that needs enemies, currently all enemies shoot me even if i was at the start of level

gamesquad
Автор

I'm using this as an "approaching wall of death" for a university assignment lmao, the tutorial was great and simple thanks a lot!

kealandoherty
Автор

THIS WAS EXTREMELY HELPFUL. THANK YOUUU

valentinajara
Автор

simple to follow, full of good info and quick. Love the vid!

andreysantana
Автор

very helpful and to the point thank you!

north
Автор

Wonderful tutorial, Definetly deserves more views.

manunavoni
Автор

Me pareció genial, siento que otros vídeos o lo hacían muy complejo o simplemente demasiado simple como para que este satisfecho con el resultado. Este vídeo me pareció rápido y que va directamente al grano aparte de explicar bien y claro lo que esta haciendo durante el trascurso del mismo. 10/10

Reina
Автор

Super neat tutorial, I'm using it for an enemy :)

iglonudel
Автор

im getting the error saying " 'Transform' does not contain a definition for 'position' and no accessible extension method 'position' accepting a first argument type 'Transform' could be found"

any way to fix this?

edit: spelled position wrong fixed now

KngCaden
Автор

Nice 😀it's a great tutorial👌 thank you 💫

newtiam
Автор

im making a game about a frog with this mechanics.gunna be awesome. Using my own art. . .and got a crew member to help work on the poroject

RTPcanadaGames
Автор

I´m using this on my 2nd "prototype game" where you get chased by some geometric shapes and you try to kill them

aaronmartinez
Автор

I'm having an issue with the vector2 movetowards line of code, its giving me a cs7036 error saying something about max distance delta. any clues? anyways your previous tutorials have been great, and so far this is too! earned a sub you have helped me aton. 3:47 is were I am stuck

jbot
Автор

Vector2.Distance doesnt work for me
pls help. btw im using 2021.3 version

dryzoFy
Автор

Is it possible for enemy ai to be drawn to multiple players? What would the code look like?

Автор

question about the distance or the movetowards.i dont know tbh
basically if i want the whole thing to be on X axis only and i dotn want to use rigidbody to solve it. Can i do it somehow?
Also the if statement wont really work in a 2d platformer style game from my experience because the Y axis is equal and the transform.pos has 2 axises right.
So how do iput the whole thing on X
i tried looking around on forums but i didnt really find an answer.

hggpi
join shbcf.ru