- Home /
Design question/discussion question/multiple technical issues
How to make a 2D infinite random level
I am really new at scripting and I need some help with the game that I'm making.
I am making a game with a ball fixed in the x and y axes and it has to avoid obstacles that move in the y axis. I want to make an infinite level with the obstacles (triggers) appearing randomly but I don't know how to do it.
I've designed several "worlds" (different situations like china or the moon...) that I also want to make appear randomly. So every "world" has to be a different scene?
So what is the script that I have to write?
I know that the question is very long, but I will be really really thankful if someone helps me to answer this question.
Thank you for reading!!
Unity Answers addresses single specific technical questions. Design questions should be posted to Unity Forums. But before posting, I recommend you do some searching on your topic. The concept of infinite whatever has been covered many times both here on UA and elsewhere. Educating yourself will help you ask a better question and therefore get a better answer. When you boil your project down to specific issues, we welcome your new questions.
Follow this Question
Related Questions
How can i make an infinite level? 4 Answers
How to save a scene that you randomly generated as a new level in your build settings? 1 Answer
how can i do that enemy cars start coming up from my 2nd level of the game ? 1 Answer
Infinite loop when I try to generate randomly a 2D dungeon.. 3 Answers
How to save a level that was randomly generated, so it can be returned to later. 1 Answer