Hi! I'm making a cinematic platformer and I've stumbled a little problem:
Since I'm making a cinematic platformer I wanted to make it so that when you stop, your character will gradually stop moving, to do this I made 2 extra animations: 1 for when you release the move key on the right foot, and one for when you release the move key on the left foot. What the game does is that it when you release the move key, it will check the frame of the current animation (walking or running) and then play one of the to accomodating animations, depending on which foot you land on. This is fine and dandy but here is where things get a little tricky:
See, when you release the button and the game checks for the next right/left step frame, it will automatically play one of the accomodating animations, this leads to the nasty problem that you can't tap the move button to continue the normal walk/run animation without it continuously restarting one of the accomodating animations (because you also repeatidly release the button, see where I'm getting at?).
I know it might sound really confusing so here is the project file so that you can see the scripts and animations for yourself, you can find the movement script in the 'controls' event:
If someone knows a way to this problem, I'd be really greatful! Thanks!