hello how do I make a state machine, is there a tutorial on the defoldia website or link that shows how to do it?
A few of Lua FSM(mostly they are the same):
I personally use the first one linked above There are also other approaches, some might be simpler for the first time Basically - if you search for Defold or more general - Lua FSM, there will be a ton of solutions
There is a video tutorial with a very simple state machine that might be most helpful to you:
There is also this project by Maksim, working, but not maintained since some time: https://github.com/Insality/defold-adam
And this template: https://github.com/britzl/lowrezadventure
using stately.lua - also a pretty simple state machine
If you don’t mind, I would like to ask you to let us know which one suits you the best and generally what you would like to have I am actually interested in developing something more user friendly regarding FSM and also with some visual nodes to represent the connections between states, which might be very helpful to visualizer the FSM