derkork / godot-statecharts

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

StateChart goes into infinite loop #34

Closed Shadowblitz16 closed 11 months ago

Shadowblitz16 commented 11 months ago

humans.zip your state.gd is going into a infinite loop

derkork commented 11 months ago

You've set up "Horizontal"/"Idle" to immediately jump to "Horizontal"/"Dash", and you have set up "Horizontal"/"Dash" to immediately go to "Horizontal"/"Idle" both with a guard that the "Grounded" state is active.

image

This forms an infinite loop. You will probably want to add an event for these transitions to trigger otherwise they will infinitely ping-pong back and forth.