Enhance Your Game: EASY Enemy Logic Using Scriptable Objects (State Machine PART 2) | Unity Tutorial

https://www.youtube.com/watc...
Join our Discord Community! - https://discord.com/invite/aHjTSBz3jH Show your Support & Get Exclusive Benefits on Patreon! - https://www.patreon.com/sasquatchbgames Wishlist Veil of Maia! - https://store.steampowered.com/app/1948230/Veil_of_Maia/ Wishlist Samurado! https://store.steampowered.com/app/2343270/Samurado/ In this Unity tutorial, We are taking our complete Finite State Machine that we setup for our enemies (you can find the full video for that HERE: https://youtu.be/RQd44qSaqww) And take it to the next level by moving our logic out of the states themselves, and into ScriptableObjects. This will allow us to have logic we can literally drag and drop into the inspector, and we'll built in in such a way that you can MIX AND MATCH different behaviors for each state, allowing you to rapidly come up with a HUGE variety of enemy behaviors! Link to Download the 2D Asset Pack seen in this tutorial: https://veilofmaia.com/tutorial-asset-pack/ Contents of This Video: ------------------------------------------ 00:00 - Intro 00:43 - Setting up the ScriptableObject Base Classes 04:34 - Changes to the Enemy Base Script 05:47 - Refactoring the Idle State Logic 07:04 - Refactoring the Chase State Logic 07:35 - Refactoring the Attack State Logic 08:15 - Calling the ScriptableObject logic from the States 08:54 - Testing Things Out 09:35 - Creating One More Idle State 10:04 - Creating One More Chase State 10:37 - Testing the States With 2 Enemies Who We Are------------------------------------- If you're new to our channel, we're Brandon & Nikki from Sasquatch B Studios. We sold our house to start our game studio, and work full time on building our business and making our game, Veil of Maia. Don't forget to Subscribe for NEW game dev videos every Monday & Thursday! Want to be FIRST in line when the Free Demo is released? Sign up for email updates and first access to the demo @ https://veilofmaia.com/ Follow us on Twitter for regular updates! https://twitter.com/SasquatchBGames ***Purchase Links*** For those that would like to support the channel, please consider using the affiliate links below should you purchase a recommended product. We really appreciate it! Equipment: We've been asked what we use, so here it is: Microphone: Blue Yeti Purchase in Canada: https://amzn.to/3WUXcWO Purchase in USA: https://amzn.to/3Tke468 RGB Lights: Purchase in Canada: https://amzn.to/3tflrkR Purchase in USA: https://amzn.to/3g0Ci7L Keylight: (Note: We use 2 of these for our lighting setup) Purchase in Canada: https://amzn.to/3UINapv Purchase in USA: https://amzn.to/3hq7sWx #unitytutorial #unity2d #unity3d
Home
/
Indie Game Developers
/
Sasquatch B Studios
/
Enhance Your Game: EASY Enemy Logic Using Scriptable Objects (State Machine PART 2) | Unity Tutorial