Use slide to change the rate of acceleration.
I made it a bit more simpler and made it so the sprite would be on the floor and it would also change costumes. Check out some of my other projects. (if you want to) :)