#Randomizing custom enemies position
1 messages · Page 1 of 1 (latest)
@fathom folio
You can specify positions in the spawnEntity command spawnEntity("entity": "luaSaucer", "x": 800, "y": 240);
No, I meant:randomizing enemy position, not positioning manually.
Ah, we've added spawnEntityRandom that takes minX, maxX, minY and maxY instead of x and y
It does adjust the X position to widescreen I just saw, which.. I'm not sure we actually want on this
how does it work? tell me!
You call it with a specific entity and give it a range of values. Then it simply spawns that entity on a random point within the rectangle your values specify
I got it now. thanks.