State machines and state charts in Godot

preview_player
Показать описание
Hello Godotneers! With the Godot State Charts library you can easily create complex behaviour in your game with very little code. In this video I'm giving you an overview on the features and how to use them.

Links:
-------


00:00 Introduction
00:30 Installation of Godot State Charts
01:21 Scene Setup
04:26 Adding the state chart
07:02 Switching States with Transitions
08:24 Using the state charts debugger
11:12 Running code during a state
13:44 Running code when entering a state
14:31 Delayed transitions
15:38 Using parallel states
18:48 Running transitions conditionally
21:03 Immediate transitions
23:26 Conclusion
Рекомендации по теме
Комментарии
Автор

I'm very impressed with this asset. I've made various different state machines (and even a state tree) from scratch in Godot and Unity, but would totally use this one instead for anything I would ever need states for. I'd love to see more videos covering more advanced use cases (even if just an overview rather than a step-by-step tutorial).

GregX
Автор

This is probably the best addon in the asset store. I have used it in every single one of my projects.

commentingexistentialcrisi
Автор

Finding tools like this is exactly why I fell in love with Godot, thank you so much for making this!

localvoidlander
Автор

This is such an elegant solution! I've wanted something like this ever since I started using state machines and you absolutely nailed it. Thank you.

chutney
Автор

This is my new favourite Godot tutorial channel! Keep it up!

Pettfej
Автор

This tutorial is phenomenal! Thank you for your simple explanation and for making it easy to follow along.

NodeNature
Автор

I noticed this in the assetlib tab a while ago but didn't get a chance to read through the documentation. This video is VERY helpful. Thanks for taking the time to create it. It makes me want to use your addon for my game. More videos would be very welcome. You did a really comprehensive job at creating this asset.

Asguardian
Автор

Really cool plugin. Love the parallel states concept and will be trying this out in my projects. Also the tutorial is really well explained and makes it easy to understand. Thanks for the guide.

ChrisTutorialsYT
Автор

Thank you for making this! I am currently using Godot State Charts to make a neolithic village simulator game. It makes adding/controlling behaviors a lot easier and modular.

adammikulis
Автор

When I think of state machines, I either imagine a chart or code, but here they're represented in nodes which looks like the native Godot way of doing everything 😅 I love the debugger! It really tells you all you need, and so easy to add.

..
Автор

Really enjoyed the zoom in on 'delay'. Made me go But, I hadn't seen the parallel states at that point. Great stuff!

woodenfences
Автор

i have been coding state machines by hand, this is SO MUCH BETTER!

willd
Автор

I HAVE SUBSCRIBED. Saw another video of yours. I believe you should keep it coming and this channel will be big. Godot is going to be big

tsplitart
Автор

Respect! Quality content here :) I cannot wait for more.

netlooker
Автор

you make amazing guides, please keep it up!

Standbackforscience
Автор

I am making a metroidvania and my character controller is a mess, I have a lot of verifications to see if I can move the player, like if is not getting attacked, if it is alive, if is not dashing, etc.
Your videos are making the process x100 faster and easier, thank you a lot!

bananabarddev
Автор

Pretty powerful. I discovered states as entities, and nested FSMs, but transitions as entities is clever. That and parallel states.

Android
Автор

This is perfect. It feels just so much more organized than using any other state machine. It would be great to see smooth transitions between states and handling animations.

TheValkire
Автор

You sir have earn yourself a subscribe. This has to be one of the easiest to follow and well explained. Gonna try and test it out. Will be back for a follow up comment once I experiment this! Great tutorial

lemniv
Автор

Wow I dunno why I haven't heard of this till now it's simple and easy to get started with thanks for showing it out

mohamedmoh