Random Object Generation

Hi there,

I know near to nothing about have an idea for a game. I was wondering how I would go about randomly spawning an obstacle in front of the player, that is, spawning an object at a random distance from the player, randomly. Hopefully you can understand.

Please try to explain as clearly as possible so I can understand!

Thanks in advance!

  • Lucas

In order to understand what you need to do, you need to be able to code using the basics, by being able to do this and learning more as you go, you will be able to understand and solve more and more complicated problems, like more complicated mechanics.

I suggest if you are a complete beginner you should start at C# unity tutorials ( I presume you have basic C# knowledge, if not just watch few simple C# tutorials online ) roll a ball is amazing one to begin with to understand unity and C#.

If you want answer to your question you may want to check this out Unity Connect