How to start a new randomized level.
I'm working on a modification of the Basic Unity Platformer Tutorial, with the intent of making it more like an endless arcade-game with score tracking and whatnot. I have managed to successfully implement score-keeping and an HUD, as well as alter the level generation script to account for higher subsequent levels having more platforms and/or higher chance of falling platforms spawning (as opposed to stable platforms). What I have not found, however, is a way to actually create a new level once the player finishes the old one.
I had planned to create a sort of Goal platform guaranteed to spawn last on every level that would trigger a script to refresh the level while incrementing a "level" variable and retaining the player's current score, but I have met with little to no success in this venture. Does anyone know of any way to make this work, preferably using a function similar to Application.LoadLevel()?
Your answer
Follow this Question
Related Questions
How to stop previous animation? 1 Answer
Prevent Character from Falling off Edge when more than Half Off (2D) 1 Answer
Cant move and jump at the same time. Only every couple frames you can jump. 2 Answers
I want to make my camera follow the player ONLY when the player is on solid ground [2D] 0 Answers
Why won't the coin disappear when the player collides with it? 1 Answer