Randomly generate as game progresses.

As my main character moves to the right, how do I make the game randomly generate new platforms to jump on?

I’m guessing something like platform.y = math.random (5), but I don’t know how to make it to have the platforms generate as the game progresses.

Thanks if you can help. :slight_smile: [import]uid: 38631 topic_id: 7122 reply_id: 307122[/import]

It depends on how the game progresses. You could just set them on timers with random intervals. [import]uid: 10903 topic_id: 7122 reply_id: 25042[/import]