Make sure that all frames in the running/dashing animations are the same size and the Origin image point is in the same position in all frames.
There is a common trick that helps to avoid issues like that:
Create an invisible rectangular sprite with Platform behavior. This will be your main "character" sprite, controlled by the player.
Remove Platform behavior from your sonic sprite and pin it to the invisible character sprite, like a "skin".
This way animations on the sonic sprite will not interfere with platform movements.
Thank you, but the animation is still a problem, and worse, the speed also glitches because of the animation. I'm not sure if I made the same mistake, but you can see for yourself. https://drive.google.com/file/d/15M06Mc ... sp=sharing