I want to create an object inside the spawnarea object, at a random point.
My thinking was:
X | random(spawnarea min, spawnarea max)
Y | random(spawnarea min, spawnarea max)
But no combination I have tried works.
Develop games in your browser. Powerful, performant & highly capable.
Never mind, I figured it out, this is how I did it.
X random(SpawnArea.BBoxLeft,SpawnArea.BBoxRight)
Y random(SpawnArea.BBoxTop,SpawnArea.BBoxBottom)