Check the code basically all it does, uses glide to move your sprite. Hope this helps! good for puzzle games!
Mention me, plz, if you use this code!