I Made Mr X's AI from Resident Evil 2 Remake | Devlog
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 own 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: https://jackpettigrew.itch.io/game-ai-study-mr-x-re2
Support me on Patreon: https://www.patreon.com/DarkDax
Follow me on Twitter: https://twitter.com/ThisIsDarkDax
Join me on Twitch: https://twitch.com/darkdax96
Second Channel: @Dax_Plays
📚 Credit
Mr X Model: https://www.deviantart.com/dollymolly323/art/Tyrant-Mr-X-RE2-REMAKE-Model-DL-MMD-801218024
AI and Games: @AIandGames
Chris Simpson: https://www.gamedeveloper.com/programming/behavior-trees-for-ai-how-they-work
Liz England: https://lizengland.com/blog/2014/04/the-door-problem/
George Baker - Save Room Theme: https://www.youtube.com/watch?v=mKECNUMFkec
🎬 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
Other Videos By DarkDax
Other Statistics
Resident Evil 2 Statistics For DarkDax
At this time, DarkDax has 4,214 views for Resident Evil 2 spread across 2 videos. The game makes up 1 hour of published video on his channel, roughly 1.06% of Resident Evil 2 content that DarkDax has uploaded to YouTube.