Infinite platform climber

Hi guys thanks for looking.

I have a question that i have been thinking about all day.

I want to create a game that allows you to jump from platform to platform but have the platforms constantly be created in an upward and side ward direction. I have already created the pooling system so that we are not creating and destroying a lot of objects.

The thing i am finding hard to conceptualise is being able to dictate where they are created(Left, right, up, down) so that the player can go in any direction and there will always be a platform that he can get too.

The main thing that pops in my mind is. How do i know where to place it and before i place it make sure that there is not another block in the way.

The second thing is that if i am falling to the ground how will i be able to dictate, Create a block below you.

I am just finding it hard to design this so that i have complete control but it is also totally random.

Any ideas would be greatly appreciated.

Here is a pic to show what i mean https://dl.dropbox.com/u/6090006/Platform%20game.png

You could ray cast before placing to check.

As far as falling most of those games don’t allow the game to scroll back down so that is your death point.

Temple run (and infinite type game) seems to have a number of autogenerated sequences which allows it to always keep the game playeable. Maybe that might work for you too at some points?