Hi! if you want to use this code, just click the heart and star. You do not need to say that you used this code by me on your project. The higher the acceleration number, the slower the sprite will go.
I made this engine myself.