I am working on something a bit similar to roadrash but with the car and endless like subway surfer or other similar 2d race game. Now I have completed car mechanics the way I want it in the game. Now, I am clueless about how can I make the buildings spawn (have created 14 variations of the building as of now) next to the track.
Note- I am keeping the car move forward as in-place mechanics was not really coming along as I wanted.
Please let me know if there's a way to spawn random buildings that will be selected from the set of assets.