I have seen a Sidescroller tutorial made in GMS on YouTube and decided it would be a nice exercise to rebuild the project in Godot Engine by using the techniques I have learned so far from the docs.
I am stuck for a week now at the problem described in the title.
I have set up a extremely simple state machine with various states (idle, run, roll, attack1, attack2, attack3) and they work with one exception. The rolling state.
Everything works as intended, but when I hammer the spacebar (which is the button for the roll state), the animation gets stuck in the last frame and does not transition to any other state anymore. To prevent this, i thaught making it mandatory to be in the idle or run state before it gets executed would help. But the problem still occurs. Here is the link to the code in my project.
Github Link to the Player character code
The part with the roll state has a comment (starting at line 49). You are welcome to make a PR. I am still realtively new to the whole version control thing but I guess I can handle it. :D
If something is unclear, I checked the e-mail notifictation for this thread to reply asap.
I really need help so I can sleep peaceful again. This is driving me nuts.