I Made Mr X's AI from Resident Evil 2 Remake | Game Devlog
ฝัง
- เผยแพร่เมื่อ 7 มิ.ย. 2024
- I recreated Mr X's AI from Resident Evil 2 Remake using Behaviour Trees in the Unity Engine from the ground up!
After many months of studying game AI, game design, coding, general game development and procrastination... I have finally completed my biggest game dev project yet inspired by the popular Resident Evil stalker AI, such as Jack Baker, Mr X and Lady Dimitrescu.
In this devlog, I explain what Behaviour Trees are, how they work, how to create a Behaviour Tree system in Unity using C#, how to create game AI, how to make Mr X, how to make a resident evil stalker system and how I fell to the dangers of Scope Creep and ultimately clawed myself back up to the surface to complete it.
Video Game AI is something I've always been interested in but never truly touched; from Finite State Machines to Goal Oriented Action Planning, to Behaviour Trees. It's a huge game dev topic. So I did the logical thing of diving into the deep end and recreating one of gaming's most revered enemy AI, Mr. X from Resident Evil 2, by creating my Behaviour Tree system in Unity.
Hopefully, you'll learn something from this devlog, if not, then enjoy it, if not, then Mr. X will come for you next.
💻 Links
The Game: jackpettigrew.itch.io/game-ai...
Second Channel: / @dax_plays
Support me on Patreon: / darkdax
Follow me on X (Twitter): / thisisdarkdax
Join me LIVE on Twitch: / darkdax96
📚 Credit
Mr X Model: www.deviantart.com/dollymolly...
AI and Games: @AIandGames
Chris Simpson: www.gamedeveloper.com/program...
Liz England: lizengland.com/blog/2014/04/t...
George Baker - Save Room Theme: • Not So Safe Room - Geo...
🎬 Timestamps
Intro: 00:00
Behaviour Tree Basics - 01:10
Creating a Behaviour Tree - 02:20
Nodes: Composite - 03:03
Nodes: Conditionals - 04:26
Nodes: Action - 04:44
Additional Nodes - 04:56
Challenges - 05:09
Visual Editor - 05:45
The States of Mr X - 05:46
States: Idle - 06:02
States: Attack - 06:12
States: Searching - 06:50
Room Navigation - 07:11
Door Problem - 10:10
Behaviour Tree Completed - 12:19
Gameplay - 13:12
Reflection - 15:15
The Best Bit: 17:25
🎮 Game
Resident Evil 2 Remake (2019)
Stay Safe & Thanks for watching! ~(˘▾˘~)
#ResidentEvil2 #gamedev #gameai #mrx #gamedevelopment #indiedev #indiegame JJJreact - เกม
Awesome video dude! I can't wait to play the game myself. This is so sick I'm glad you drove it all the way and got it done, it's a huge project full of super amazing work and it shows the amazing amount of effort you put into it man. Time to start applying to full time game dev positions!
Thanks man, I really appreciate it and all the support you’ve given me along the way. It was a long time coming but it was worth it in the end!
Awesome video! Behaviour trees are still something I'd rather not touch yet, but watching you struggle through all this has been fun to watch ;D I love the somewhat cautonary tale of building something, then suddenly falling into the deep, dark pit of scope creep. Had that happen to me quite a few times and even though I had been proud of what came out of that, the pressure I put myself under was stupid.
The descent into madness was just as fun haha. I find it spooky how easy you can fall to scope creep - it’s a constant battle.
I think there’s something special about being able to recognise it and push out of it, so well done for doing that too!
new video is a banger mah british boy!
has that lovely vibe like in the yandere vid, just a thing ya can watch & listen to multiple times thruout ya lifetime :3
Esp lovin the intro and the music in it, goel did wonders (but damn, that cooper jams hittin my childhood the best ways)
also, try your luck in godot, it has great potential
Thanks, I really appreciate it! That’s exactly the vibe I was hoping it would be!
Those copper bops are something else, that and Beyond Good and Evil - that gets me all nostalgic haha
This video has to go viral
this video is so good bro
glad to see it finally finished
Thanks so much, it was great to have you along for the ride as I descended into madness haha
so this is what you've been working on. very nice :) i need to put more time into learning ai. hoping uni work will help push me in that direction once i can push myself out of ruts xD
Thanks! Game AI is a big topic with so many different ways of doing it so you’re in for some fun learning haha. Good luck!
Thank you for the video, it was very entertaining and interesting.
Lately I realized about my burnout and still figuring out what to do while continue to work on my project consistently, so the last part was very heartwarming to watch.
Side note: I switched to unreal 5 recently and it's been very fun and also frustrating. Making c++ layer and blueprint layer to work together is a standard way to work with UE, but reliability of compiling c++ code with live-coding has been very questionable. I had to close the whole editor and rebuild the project file every time I make any change in a header file. It's a very cool engine, I like their material visual script and blueprint for fast testing, but it has some issues, just for the heads up. I hope you find a new engine that fits well with your workflow.
I’m glad it was relatable! As long as you look after yourself and manage the workload, you’ll be finished that project.
I’ve also been thinking of moving to Unreal so it’s nice to hear about someone’s experience! Thanks for sharing!
Jesus... Such much work put in this video and yet so few views. Hope the algorithm will do you a favor. Stuff's good work.
Thank you so much, I'm glad you enjoyed the video! It took a lot of effort but glad to have completed it!
Love the vid as always. Very interesting topic and great execution with the project as a whole. Looking forward to playing it!
Thanks for the kind words! If you close your eyes and squint you might not find out how to easily dupe the AI hahaha
I don't understand the difficulty of doors with A.I. Maybe I've oversimplified it, but just give the door a trigger that only the AI uses so it auto opens when the AI approaches, check to make sure another A.I. isn't using the door trigger already to prevent one from closing it while it's already open, and also set the door mesh to not block navigation so the AI always sees the doorway as open. I did this in my game and it works beautifully.
AI vs Doors is as complicated as you want to make it. Personally I chose not to go a trigger based approach because I wanted more control over when an AI opened a door within the BT system I designed. I also apparently wanted to make it more complex... here we are hahaha
@@DarkDax lol. I think AI Doors are like giving birth... it's hyped up as this terribly painful thing but once it's over you discover it's not as bad as people made you think :P
Cool
underrated vid
Thanks mate!
Well done! I recommend Godot!
Thanks! I’ll heard some good things about Godot so I’ll check it out!
FIRST
Second