can anyone please tell me how to make a running game where your character is running across the screen and you have to avoid running into any obstacle.
There are alot of tutorials on the internet about this. A simple google on how to make a platformer game is probably enough. You're talking about a platformer where you need to avoid obstacles right?
Just kidding with that link. I haven't made one so I'm guessing the basics of the game are you're character doesn't move. All the objects moving towards you. If you want to make random maps Im assuming you know how to use random numbers so you just assign each object a number (like 3) and have the game randomly select a number, if the number is 3 have it create object 3 off stage and have it keep moving until it leaves the left side.
If you need to know how to make your guy jump, i made some gravity code here