Welcome to this beginner-friendly Unity tutorial! Today, we'll learn how to make our AI character (NPC!) do different behaviors by using a simple tool called Enums. This is like building a basic structure that we'll later fill with behaviors movement and other game logic in upcoming videos.
Here's what is covered:
What Enums are and why they're handy.
Making three different NPC behaviors.
Learning how to switch between these behaviors manually.
By the end of this video, you'll have a simple but strong base to make your NPCs do all sorts of exciting stuff in your games.
Timestamps:
0:00 - Intro to behavior states
1:20 - Creating an Enum
3:41 - Manually switching behaviors
3:52 - Changing state through code
4:28 - Using a switch statement to check current behavior
6:29 - Test!
7:18 - What's next?
#unitytutorial #gamedev #NPCBehavior #Enums #SimpleScripting #unity3d
On this page of the site you can watch the video online Unity AI Part 2: Basic Behavior States with a duration of hours minute second in good quality, which was uploaded by the user Bananahead 21 November 2023, share the link with friends and acquaintances, this video has already been watched 382 times on youtube and it was liked by 27 viewers. Enjoy your viewing!