How do I get random spawn location at X - 0 but in between the edges of my layout?
Let's say 1st random spawn is at Y 132
2nd is at Y 386
3rd is at Y 214
Thanks for the any help
Develop games in your browser. Powerful, performant & highly capable.
random(50,100)
..for example, will return a value between 50 and 100
choose(132,386,214)
will randomly return one of the values listed.