derkork / godot-statecharts

A state charts extension for Godot 4
MIT License
734 stars 35 forks source link

Automatic transitions? #69

Closed eldyer closed 7 months ago

eldyer commented 7 months ago

As a question, would it make sense to have an "Automatic" option for transition nodes?

This would dispatch the transition every frame without an external trigger event.

It could be useful when combined with guards.

derkork commented 7 months ago

This is already built-in. Just leave out the "event" and the transition will be immediately taken when the state is entered.

eldyer commented 7 months ago

Great! And thanks for the super fast answer.