Uploaded February 2023 | Updated September 2026, 2 weeks ago
In this video, we create states to hold some of our character logic and link those states to the animation sets using dictionaries. However, dictionaries are not serializable in unity out of the box so we can use a free plugin to have a serializable version of a C# dictionary to suit our purposes working in the Unity editor.
Serializable Dictionary Download github.com/azixMcAze/Unity-SerializableDictionary
Gatherer's Exterior Pack Download
Itch.io ➣ chris-tutorials.itch.io/gatherers-exterior-pack
Ko-fi Links
Full Project & Assets ➣ ko-fi.com/s/5063a0d7ad
Scripts Only ➣ ko-fi.com/s/f025cef198
Patreon Links
Full Project & Assets ➣ patreon.com/posts/67997091
Scripts Only ➣ patreon.com/posts/79943145
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
patreon.com/christutorials
https://linktr.ee/ChrisTutorials
chris-tutorials.itch.io
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► joinhoney.com/ref/qd04c25
00:00 - Walk and Use Animation Sets
07:42 - Managing Character States
11:37 - Serialized Dictionary in Unity
16:01 - Get Facing Clip from State
19:39 - Testing Code
20:56 - Migrating Dictionary Code to a New Class
23:43 - Making New Dictionary Class Serializable
24:37 - Wrapup
In this video, we create states to hold some of our character logic and link those states to the animation sets using dictionaries. However, dictionaries are not serializable in unity out of the box so we can use a free plugin to have a serializable version of a C# dictionary to suit our purposes working in the Unity editor.
Serializable Dictionary Download github.com/azixMcAze/Unity-SerializableDictionary
Gatherer's Exterior Pack Download
Itch.io ➣ chris-tutorials.itch.io/gatherers-exterior-pack
Ko-fi Links
Full Project & Assets ➣ ko-fi.com/s/5063a0d7ad
Scripts Only ➣ ko-fi.com/s/f025cef198
Patreon Links
Full Project & Assets ➣ patreon.com/posts/67997091
Scripts Only ➣ patreon.com/posts/79943145
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
patreon.com/christutorials
https://linktr.ee/ChrisTutorials
chris-tutorials.itch.io
◢ Chris Recommends ◥
Master Skills with Skillshare Video Courses ►► skillshare.com/r/user/christutorials?gr_tch_ref=on
Save Money Shopping Online with Honey Extension ►► joinhoney.com/ref/qd04c25
00:00 - Walk and Use Animation Sets
07:42 - Managing Character States
11:37 - Serialized Dictionary in Unity
16:01 - Get Facing Clip from State
19:39 - Testing Code
20:56 - Migrating Dictionary Code to a New Class
23:43 - Making New Dictionary Class Serializable
24:37 - Wrapup










![Hit and Damage for Behavior Tree & State Machine ~ Godot 4 LimboAI Tutorial [P8 Final]
Wrapping up the LimboAI Behavior Tree & State Machine Series with some basic health, damage, and death states. Showing methods for triggering the dead animation for both state machine and behavior tree.
Series Project Files
Ko-fi ➣ https://ko-fi.com/post/Project-Files-Control-Character-States-with-Limb-P5P118FNW8
Patreon ➣ https://www.patreon.com/posts/119247384
Playlist
https://www.youtube.com/watch?v=6HzETy7izig&list=PLyH-qXFkNSxkviZMlWoVilQN40Oqh7m6Y&pp=gAQB
Grid Building Plugin ➣ https://linktr.ee/gridbuilder
World Time Plugin ➣ https://linktr.ee/worldtimeplugin
Item Drops Plugin ➣ https://linktr.ee/itemdrops
➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://linktr.ee/ChrisTutorials
https://ko-fi.com/christutorials
https://patreon.com/christutorials
https://chris-tutorials.itch.io/
Art Assets
Treasure Hunters by Pixel Frog
https://pixelfrog-assets.itch.io/treasure-hunters
Timestamps
0:00 What to Expect
0:20 Character Health
1:05 Attack Collider
8:02 Dead State - Player State Machine
10:38 Behavior Tree Dead Transition
14:31 Making Stats Unique Per Character
15:21 Wrapup Hit and Damage for Behavior Tree & State Machine ~ Godot 4 LimboAI Tutorial [P8 Final]](https://i.ytimg.com/vi/cTz7MoAMUaY/mqdefault.jpg)