First create several different types of platforms you want the player to land on while running.
next, using the system (every 1 second or something) to spawn new objects.
Set their X position to just beyond the .x of the layout of the screen so that they will start off screen.
Next use a system every tick event to move the platforms back in -X towards the player at whatever interval you want (probably a variable that will increase over time to speed up the buildings.
Then lock the player's jump so that its only up and down and they can't move left and right.
to separate the platforms so that they get created at a variable distance, set that original random timer you used to spawn the platforms to a setting like random(5) seconds. This way, some will be further apart and some will be closer together. Make sure the maximum distance apart isn't too big for the player to jump though. Also you will probably need to add another variable to that as the speed increases because the gap the player crosses will get bigger and bigger as the speed of the platforms come towards them.