[SD] Random spawn position?
Hey,
I'm using Seraphs Dominion.
I want to know how to make a boss randomly spawn somewhere in the map each time, I'm making an event type spawn and want it to randomly spawn somewhere every time.
Any help / solution will be good, cheers.
use Random:
Random rand = new Random();
then do like
var randomX = rand.Next(0, 100);
var randomY = rand.Next(0, 100);
and put the randomX and randomY in the entity.Move(X, Y); part where the current X, Y part is
i believe that should work u just might want to workaround with the numbers a bit to make sure the entity doesnt spawn at null areas or something