[gml]
//views
d3d_set_projection_ortho(0,0,800,600,0)
var xx,yy;
xx=725
yy=62
//Minimap base:
draw_set_alpha(9.0); //set alpha to make the minimap partially transparent
draw_circle_color(xx,yy,rad,c_green,c_green,false); //draw the minimap base
//Expanding mini circle outline:
draw_set_alpha(0.5); //set alpha to make the line partially transparent
draw_circle_color(xx,yy,minRad,c_green,c_green,true); //draw the expanding mini circle
draw_set_alpha(1); //reset alpha to 1
//Outline of minimap base:
draw_circle(xx,yy,rad,true); //draw a basic outline of the base
with (Other) //draw the enemies (this loops through them)
{
if (point_distance(obj_player.x,obj_player.y,x,y) < other.len) //if the distance between the player and the enemy is less than the radar's range (len)
{
draw_circle_color(other.x+(cos(degtorad(point_direction(obj_player.x,obj_player.y,x,y)))*(point_distance(obj_player.x,obj_player.y,x,y)/other.scale)),other.y-(sin(degtorad(point_direction(obj_player.x,obj_player.y,x,y)))*(point_distance(obj_player.x,obj_player.y,x,y)/other.scale)),2,c_red,c_red,false); //draw the enemy icon (basic circle)
}
}
with (obj_player) //draw the player
{
draw_circle_color(other.x,other.y,2,c_yellow,c_yellow,false); //draw the player icon (basic circle)
}
[/gml]
Fijate así.
//views
d3d_set_projection_ortho(0,0,800,600,0)
var xx,yy;
xx=725
yy=62
//Minimap base:
draw_set_alpha(9.0); //set alpha to make the minimap partially transparent
draw_circle_color(xx,yy,rad,c_green,c_green,false); //draw the minimap base
//Expanding mini circle outline:
draw_set_alpha(0.5); //set alpha to make the line partially transparent
draw_circle_color(xx,yy,minRad,c_green,c_green,true); //draw the expanding mini circle
draw_set_alpha(1); //reset alpha to 1
//Outline of minimap base:
draw_circle(xx,yy,rad,true); //draw a basic outline of the base
with (Other) //draw the enemies (this loops through them)
{
if (point_distance(obj_player.x,obj_player.y,x,y) < other.len) //if the distance between the player and the enemy is less than the radar's range (len)
{
draw_circle_color(other.x+(cos(degtorad(point_direction(obj_player.x,obj_player.y,x,y)))*(point_distance(obj_player.x,obj_player.y,x,y)/other.scale)),other.y-(sin(degtorad(point_direction(obj_player.x,obj_player.y,x,y)))*(point_distance(obj_player.x,obj_player.y,x,y)/other.scale)),2,c_red,c_red,false); //draw the enemy icon (basic circle)
}
}
with (obj_player) //draw the player
{
draw_circle_color(other.x,other.y,2,c_yellow,c_yellow,false); //draw the player icon (basic circle)
}
[/gml]
Fijate así.