Randomly Generated Platforms as You Go

Shadow078

  • Posts: 13
Hey Stencylers,

I'm working on a vertical climb game, and I want it to have randomly generated platforms at the top of the screen as you progress. 

I want to have platforms generate in a way similar to this game: http://www.youtube.com/watch?v=RtfWEioCjmA&feature=related

But for my game, I want them to generate from the top, and only as you climb, not as time goes on.  Anybody know how to do this?

Thanks,
Shadow078

Ganu

  • Posts: 224
do every (amount of seconds) seconds
{
generate random number
     if(random number is: 1)
     {
          spawn specific platform;
     }
     else if(random number is: 2)
     {
          spawn other platform;
     }
          etc...etc...etc...etc...etc...
}

PS: Nice game idea though, simple but funny!
Currently waiting for joints in stencylworks.

Shadow078

  • Posts: 13
Thank you for your reply, but I already know how to do that.  I don't want one every x number of seconds, I want to know how I would go about spawning platforms AS YOU GO.  Similarly to Doodle Jump.  Do you know how I would do that?