This is a gravity script developed by one of my students. I am using it as a jumping off point to help them develop plat former games.
Thanks to @fencewall for the script.