Hi Rob!
I bought your platformer engine but i cant find the finite state machine i want to add another attack but cant find where to add another state.
Create your own GM:S game! · By
Hi Jose,
Thanks for reaching out. If you look in the script "motion" you will find all the states under the green comments (collapse all regions).
Instead of a classic switch statement, the script uses if statements and calls exit (exiting the code) after performing actions for a certain state.
If you want to use a classic switch statement, just add a switch statement and state variable, wrap the original code in another state that you call whatever you want and voila!