Ok so is there a way to keep an animation going until I let go of the key? Ik about the loop function but then it plays forever. like say I wanted my sprite to do a walk animation until I let go of the right arrow key and after I let go it went back to idle. how do I do it?
Your key(down output)—(play input) walking animation
Your key (up output) ------(stop input) walking animation
A more complex version is to have both your keys, and send both the downs through a switch (default on), and have the out of the switch connected to the start of the animation as well as the switch’s own Off. Next, connect a logic gate to both the downs of the keys and change it to NOR. Connect the out to the stop of the animation and the On of the switch.
So basically, once a key gets pressed, it plays the animation. If both keys aren’t pressed, the animation stops.