J
Jan2
Guest
How can I make a randomly generated starfield, where stars are placed randomly? I expect stars not to be instances, because this will be a very bad solution. They should be DRAWN like this!
rgbcolor = make_colour_rgb(255,255,255);
draw_set_color(rgbcolor);
for(i=0;i<50;++i)
{
x_pos = random_range(0,room_width);
y_pos = random_range(0,room_height);
draw_circle(x_pos,y_pos,3,false);
}
rgbcolor = make_colour_rgb(255,255,255);
draw_set_color(rgbcolor);
for(i=0;i<50;++i)
{
x_pos = random_range(0,room_width);
y_pos = random_range(0,room_height);
draw_circle(x_pos,y_pos,3,false);
}
Last edited by a moderator: