Create actor at random point from x/y +10 or -10
Posted: Sat Apr 14, 2007 4:51 am
I was wondering how I can create an actor at a random distance away from the creating actor but only within about +/-10 of the x/y coordinate.
Game Editor discussion board
http://game-editor.com/forum/
double newx, newx;
newx = x + rand(20) - 10;
newy = y + rand(20) - 10;