You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a code for finite state machine that use match to change state and after changing state use continue to skip current state codes and jump to next state, but in gdscript2 continue doesn't work the same way as before, so my code doesn't work anymore and I don't know what is the replacement for "continue" to make it work
If you want to do a continue to move to the next statement in the match this is indeed no longer supported, it was removed here #71914, and here is the proposed future feature to replace it godotengine/godot-proposals#4775
I don't think there's any direct way to do this in the current version of GDScript though
I agree. This is not a bug, but an intentional change. There was a suggestion to replace it with some new keyword, but we did not find a word that conveys the exact meaning of the old behavior (for example, fallthrough means a little different). Also, the ability to jump to a different match branch often results in less readable code.
Godot version
4.0 stable
System information
windows 10
Issue description
I have a code for finite state machine that use match to change state and after changing state use continue to skip current state codes and jump to next state, but in gdscript2 continue doesn't work the same way as before, so my code doesn't work anymore and I don't know what is the replacement for "continue" to make it work
Steps to reproduce
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: