make infinite blocks

Hi, so I’m a total noob and I’ve made a character and a block ground and what I want to know is how to generate the ground infinitely and randomely downwards so the character can hop onto them.
Any help would be appreciated. Thanks.

So, I assume this is for an infinite falling/jumping kind of game, like a reverse Icy Towers and similar games? A good way to do it - as long aas your don’t have much to keep track of besides the charater and the blocks - is to keep your character’s position at 0,0,0 and move blocks by changing their transform.position over time. The two main things you need to know about are:

  1. Vector3.Lerp for smooth gameObject movement over time
  2. The Instantiate function which lets your create an instance of a prefab gameobject.

Also, you would need a simple script for each block that checks it’s y position continuously and destroy the block if it gets too high (effectively helping you to keep your scene clean by removing objects that are no longer needed in the scene).