gdquest-demos/godot-3-demos

Errors in Finite State Machine demo

seanbone opened this issue · 2 comments

In the Finite State Machine demo (file 2018/04-24-finite-state-machine/player/weapon/sword.gd), there are several errors of the type:

Identifier 'IDLE' is not declared in the current scope.

This is because the two enums are being called incorrectly: syntax changed as of Godot 3.1 alpha 3. I'm also not sure how it would have worked previously (Godot newbie here), since both STATES and ATTACK_INPUT_STATES have an IDLE state, and I'm not seeing how the two should be distinguished in previous Godot versions.

PS: thank you so much for all the work you've put into these demos, as well as your YouTube tutorials. Wonderful resource, makes getting started with Godot super easy and fun!

Thanks much for the report! I opened #41 so we can fix the issue everywhere efficiently, instead of doing it manually for every demo.

Yeah, that sounds like a much more sensible plan. I might be able to get the ball rolling on that next week.