How to make a sprite accelerate (get gradually faster) You can look at the code for more help
if you use this give me credit