Wow you've found my gravity test. Nice! You can use this as long as you give me credit. I made comments in here so it would be pretty easy to understand. If you don't, just comment. I'll respond quickly. This has no movement yet so you'll have to code that but I have hope that you'll have enough knowledge for that. Since there is not sprite named "Ground" this gravity code relies on the Y variable instead of there just being something under you. This means that its not as advanced for platformers but could work. I probably will be working on a version where it actually does rely on the ground so if that's what you need please be patient with me.