Quantcast
Viewing all articles
Browse latest Browse all 125

2D infinite runner obstacle generation?

Hi Unity, I am developing a game that has 2 types of obstacles: One that you have to jump over and one that you have to slide under. How could i generate them randomly without them generating on top of each other (they must be far apart or else the player wont have a chance to avoid them and survive). Thanks in advance!

Viewing all articles
Browse latest Browse all 125

Trending Articles