This is the basic coding for a platformer! Do whatever you want with it! For this code you need to make the obstacles and ground a seperate sprite and you have to specifically name the sprite ground as spelt there or change it in the code up to you