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:
[ Ссылка ]
Playlist:
Part 1: State Machines - [ Ссылка ]
Earlier Content: 2D Player Movement - [ Ссылка ]
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: [ Ссылка ]
Twitter: [ Ссылка ]
Tiktok: [ Ссылка ]
Discord: [ Ссылка ]
Become a Patron at [ Ссылка ]
Download assets and games from the stream at [ Ссылка ]
Later, pals!
Ещё видео!