GML
for(i=0;i<instance_number(o_mothership_red);i+=1)
{
in=instance_find(o_mothership_red,i)
if(in.x<view_xview[0] or in.x>view_xview[0]+view_wview[0] or in.y<view_yview[0] or in.y>view_yview[0]+view_hview[0])
{
draw_set_color(global.red_color)
draw_circle(x+lengthdir_x(64,point_direction(x,y,in.x,in.y)),y+lengthdir_y(64,point_direction(x,y,in.x,in.y)),3,0)
draw_set_color(c_black)
draw_circle(x+lengthdir_x(64,point_direction(x,y,in.x,in.y)),y+lengthdir_y(64,point_direction(x,y,in.x,in.y)),1,0)
}
}
Wyjęte prosto z mojej gry na ligę