this is a platformer physics you can use this for a scrolling platformer (recommended) or you can make a platformer
Thanks to mcguy for the physics