14. 2D Platformer - ENEMY AI 2/3 - Unity Tutorial

preview_player
Показать описание
In this second part of the Enemy AI tutorial we begin coding the enemy pathfinding and movement script.

Difficulty of lesson: Intermediate.

····················································································

Learn how to make a cool 2D Platformer using the powerful 2D tools introduced with Unity 4.3.

····················································································

········································­­·······································­·­····

► All content by Brackeys is 100% free. I believe that education should be available to everyone. Any support is truly appreciated so I can keep on making the content free of charge.

········································­­·······································­·­····

♪ Baby Plays Electro Games
Рекомендации по теме
Комментарии
Автор

Thanks brakeys that's what I need please keep doing videos like that

ventoseilaatchim
Автор

if anyone's confused by the method term
this was pretty confusing for myself as i switched from c

method = literally a function
method is used in java for functions inside a class, so he most likely got it off of that
member function is pretty much the same thing but it's used in c++ instead of method

ale-hlpg
Автор

Please upload last episode soon really need it thanks!!

tristan
Автор

Thank you Thank you Thank you!!!! You help me a lot with my passion thank you again!!

stevenking
Автор

on line 53 when you download pack and import script from in the 2d mega pack he forgot to put "yield return false;" he only put "return false" hope that fixes any errors!

theconqueror
Автор

Another Awesome video, any plans to do a GUI video that could show heath etc or a video on switching weapons?

Lewie
Автор

Can you please do a tutorial on how to make a 2D adventure game like terraria and starbound?:)

babixzplayer
Автор

THANKS BRACKEYS U ALWAYS ROCK  I ALWAYS FOLLOW U

mousamrajput
Автор

Anyway of programming the arm to only go 180° dependent on the way you're facing not 360°?

HyybridArts
Автор

once again, play, share, like, favorite, add to playlist, (hope one day i will be back), move on :)

johnnyxp
Автор

Brackeys You can change the "New C# Script" template if you hardly ever use "System.Collections"

AlexanderPatrick
Автор

I am getting the following errors

Assets/Standard Assets/2D/Scripts/EnemyAI.cs(13, 10): error CS0246: The type or namespace name `Seeker' could not be found. Are you missing an assembly reference?

Assets/Standard Assets/2D/Scripts/EnemyAI.cs(16, 9): error CS0246: The type or namespace name `Path' could not be found. Are you missing `System.IO' using directive?

Please tell me how to fix them.

blair
Автор

Wasn't Rigidbody preferred not to be used due to the many calculations it has to do and so it's better to just write it yourself to simplify it and less work?

magnusm
Автор

What would you recommend to download if you wanted to make animations or texture an object on your own.

SmileyFaceMrlol
Автор

What about MVC in Unity?

...Btw what microphone do you use? :) Your site shut down so I can't read the FAQ (possible this question is there) :(

jerrygreenest
Автор

Uhm.
You were storing local rigidbody2d in a variable, misstyped a capital R and then said "It will give us a local rigidbody, and we don't want that"
That sounded weird a bit xD
Also I don't see what's the point in storing it, if rigidbody2d is the same thing..

Fanatator
Автор

What about enemies that they r on the ground?

darkydrone
Автор

+Brackeys The Graph Lines are too big, is there a way to get more squares, andthus more precision?

TheIndieGamesNL
Автор

Why do I get this error:
Assets/scripts/EnemyScript.cs(23, 22): error CS0103: The name `GetComponenet' does not exist in the current context

It highlights:

rb = GetComponenet<Rigidbody2D> ();

BlackTgaming
Автор

please help I tried to use this script but every time I do it says "seeker cannot be found" along with path I even downloaded the script and used it and the same mistake came up what I think it is is its not importing the stuff from pathfinder when you do "using Pathfinding;" I'm kinda new to unity and c# so I tried everything i could think of i would appreciate your help thanks

gabrielvega