2D Enemy AI in Unreal Engine 5 - Beginner Tutorial
Вставка
- Опубліковано 9 тра 2024
- Get my 12 hour course on how to make 2D games with Unreal Engine:
tinyurl.com/Ultimate2D
Get the free Starter Project to code along:
/ starter-assets-100633993
In this Unreal Engine 5 tutorial you'll learn how to set up simple Artificial Intelligence for your 2D Enemies.
Setting up AI in Unreal can be very challenging and this will teach you the basic concepts and also how you can use them with Paper 2D.
🔔Subscribe: / @cobracode
Twitter: / cobracodedev
Discord: / discord
Timecodes:
0:00 Intro
1:06 Making the AI walk forward
2:25 Adding wall detection
7:54 Adding ledge detection
10:38 Using the AI Controller
🎵 Music By:
- Team Astro - Hidden Treasure
- Provided by Lofi Records
- Watch: • Team Astro - Hidden Tr...
Icons made by Freepik (www.freepik.com) from Flaticon (www.flaticon.com/)
#cobracode #gamedev #unrealengine #ue5
Get the free Starter Project to code along:
www.patreon.com/posts/starter-assets-100633993
Get my 12 hour course on how to make 2D games with Unreal Engine:
tinyurl.com/Ultimate2D
lets go! I was asking for this in your 2d series intro video. Thanks man!
:D
Thanks for the suggestion.
Viewers asking about it was what pushed me to finally cover this!
Awesome. Elegant solution really. Thanks for the tutorial!
Fantastic tutorial. I bought one of your courses and I'd love to see how to make a simple bossfight. Hope you make more!!!
Thank you :D
Thank you I'll enjoy it
thanks you rock man!
Thanks for this vidéo it's Amazing
Thanks i hope you make more
Great tutorial :)
Thank youu for making this tutorial
Thank you for watching :D
you absolute godsend...
Nice tutorial. If there will be series for a metrovania or megaman like games that will be sweet!
Hey!
I already made a complete 10 hour course on a megaman like!
ua-cam.com/video/xV_uivHM9w0/v-deo.html
I really enjoy your content, thank you for the work.
I Only have one thing that I feel is not perfect.
It`s always heavy to understand for a newbie, when you start with this is a class from this and from that and so it is.
Maybe it comes more handy with a note like:"if this is unclear check here" or even "Check my course online"
Ill try to use this video in my first project, maybe it works for me, maybe not.
Anyway, again:
Thank You !
Really like the vid .can you make a video on enemy AI having ranged attacks , sensing player location and following them to attack and a simple health system
Hey, all of that is covered in my courses, sadly UA-cam doesn't respond well to highly specified tutorials like that.
Nice
Please make a tutorial with behavior trees!!!
Thats cool, i didn´t know about that "validated get" option o.O
Not quite sure when exactly that was added, but came out in one of the UE 5 updates!
@@CobraCode Always learning something new :)
Could you please make a video of how to make a player respawn after a flipbook plays when the player dies like Mario game and a UI with some phrases pops up for a few seconds?
5:59 yeah guys you can just skip allat and just do add 180 to actor rotation, not SET... ADD
I just bought your 12 hour lesson. I know what im doing this weekend. Is there a way to make a character section screen? Thanks you rock
Thank you :D
Sadly Menus and UI are a big topic to cover, so they're not included in the course
That's way simpler than my Event Tick -> Sphere Trace
If you were doing like a 3D/2D project with this is there a simple way to make the enemy sprite face the player camera after it turns?
You could look into 'billboarding' and adding that to the material to force the sprite to always face towards the camera, no matter what.
This penguin is so cute
Can you do a tutorial on how to make a game Like otheroworld legends on pc?
Thanks for the suggestion.
First time I'm hearing about this game, but the art style looks really cool.
Not quite sure if I'd do something with gameplay similar to this though.
@@CobraCode yeah the art and ganeplay mechanics are great esp for a mobile game, if you can't make it do you know someone who i can suggest it to😅
@@CobraCodebtw what gente of game would you put it as maybe isomteric roguelike 2d?
@@thathonestguy-oh9mx
You probably shouldn't look for somebody to make exactly your niche type of game.
All of the tutorials I have will teach you the basics you need and you then have to put it together yourself and make it your own.
@@CobraCode oh ok thank you so much for replying man🤍
isn't a bit overkill casting in AiController to get the char and performing an is valid on tick for every enemy in the game?
We have a similar setup in a VR shooter that has 50+ enemies at once and there aren't issues with it.
You could find ways to optimize it through interfaces and other things.
New to Unreal but this This Video helped me a lot, but if I want to add so when my player collides with my enemy my player dies, how to I do that?
Hey, you can try looking into OnBeginOverlap and collision channels, that should point you in the right direction.
Can You Make A Tutorial Based Upon The Enemy Needs To Strafe By Detecting The Ledge..
Also It Should Attack The Player When Enemy Saw The Player
And The Enemy Should Play His Attack Animation
Hey, all of those things are covered in my courses.
Sadly in depth tutorials like that aren't suited for UA-cam.
hi! I have a question, I did a 2d enemy in a 3d world, but when the enemy dies, the dead sprite it's not in the ground, is floating a bit, do you know how to fix it?
Hey, might be a problem with how your sprite sheet is set up and where the pivot points are.
Can somethi g like this easily be edited to work with a top down 2d game?
You'd have to make some adjustments to account for the additional dimension, but yeah you could use a similar system
Man how to stop camera when character is near to the wall in closed room? 2D character in 3D world. I need this because camera shows wall's outside view
You'll have to create some box collision that will zoom the camera in when entering a room or give the walls a special material that you can then make seethrough when the character enters.
My keeps crashing why
i have never had problem with Udemy until i bought your course. not only i had to pay 2 times because there investigation said payment did not reflect on their side, once the extra payment went through they automatically refunded that charge and my course went with it -_- still waiting for Udemy response to either refund other transaction or just my course back.
ps: dont upload udemy
Sorry to hear about that :(
I hope it gets worked out.
For me Udemy has always been great, both as a user and as an instructor, but I have heard some people have issues with it.
@@CobraCode I got them back finally after 2 days lol. Btw I have a 2d course idea if you consider it I would love to learn from you. 2player local multiplayer like old days snow bros, contra
@@Fpmp01
Thanks for the suggestion.
Yeah there will definitely be some courses or videos featuring local multiplayer.
Things have changed quite a bit since the last time I did this, so need to put in some research time though.