Hey, thanks for taking the time to read this!
What’s problem you are encountering?
The main problem is transitioning between animation loops for a game character. Right now I have 3 loops, idle, walk, and leap and I’m trying to get input from the user to switch between the three when certain keys are pressed. I notice a lot of stuttering when the animations switch, I assume this is because I call the wait() primitive after swapping animation frames.
My thought is: when stop_this_script() is called, it can’t stop playing the animation because it’s still waiting.
What have you tried that didn’t work?
I’ve tried using signals to maybe get the animations to work a bit more fluidly, but it ends up getting messy and doesn’t quite work.
Post a project example, link, or screenshot:
Linked is the progress I’ve made so far, under the main goblin sprite are the scripts for input. The code is super rough and verbose, and really my goal is to just shorten it and make the animations blend seamlessly (as seamless as possible). If you have any suggestions for libraries I should use or any techniques I’d deeply appreciate it! Thanks in advance–