Heya Pals!
In this video, we continue on from the previous State Machines video to demonstrate the path to a Hierarchical State Machine setup, being much more flexible and extensible.
Enjoy!
Download the Assets:
https://uppon-hill.itch.io/indietales...
Playlist:
Part 1: State Machines - • Code Class - Build your own State Mac...
Earlier Content: 2D Player Movement - • Code Class - 2D Player Movement in Unity
Chapters:
0:00 - Introduction
1:14 - Upgrading to a State Machine Class
5:23 - Creating a "Core" class for entities
8:55 - Refactoring code into core modules
12:47 - Understanding State Hierarchies
13:49 - Building a Hierarchical system
16:02 - NPC "Patrol" behaviour
20:29 - NPC "Collect" behaviour
24:40 - Varying behaviour between state instances
26:06 - Simple State Debugger
28:22 - Outro
Music:
Helynt - Super Lo Fi World 3, [Gamechops.com]
----
This video features clips from my stream. Catch it live: Weekdays 1-6pm AEST.
Twitch: / adamcyounis
Twitter: / adamcyounis
Tiktok: / adamcyounis
Discord: / discord
Become a Patron at / adamcyounis
Download assets and games from the stream at http://uppon-hill.itch.io/
Later, pals!
On this page of the site you can watch the video online Code Class - Hierarchical State Machines with a duration of hours minute second in good quality, which was uploaded by the user AdamCYounis 18 March 2024, share the link with friends and acquaintances, this video has already been watched 19,639 times on youtube and it was liked by 959 viewers. Enjoy your viewing!