Hi
Kann mir einer das radar script umschreiben es funkzioniert leider nicht mehr in der 6.0 version von gmaker!
{
//Set these variables for different radar sizes etc.
border_color=c_red;
inner_color=c_black;
radar_width=100; //The size of the radar is 4:3, just like the room.
radar_height=100;
dot_color[0]=c_red;
dot_color[1]=c_blue;
dot_color[2]=c_purple;
viewrect_color=c_red;
//First, we draw the rectangle of the radar.
pen_color=border_color;
brush_color=inner_color;
brush_style=bs_solid;
draw_rectangle(view_left[0],view_top[0],view_left[0]+radar_width,view_top[0]+radar_height);
//Now we will draw the rectangle of the current view.
draw_rectangle(view_left[0]+view_left[0]/room_width *radar_width,
view_top[0] +view_top[0] /room_height*radar_height,
view_left[0]+(view_left[0]+view_width[0])/room_width *radar_width,
view_top[0] +(view_top[0]+view_height[0])/room_height*radar_height);
//Now we draw the dots of the objects.
brush_color=dot_color[0];
with(objectname) //That is the first object to be shown on radar
{
draw_pixel(view_left[0]+x/room_width*mouse.radar_width +1,
view_top[0]+y/room_height*mouse.radar_height+1);
}
brush_color=dot_color[1];
with(objectname) //That is the second object to be shown on radar
{
draw_pixel(view_left[0]+x/room_width*mouse.radar_width +1,
view_top[0]+y/room_height*mouse.radar_height+1);
}
mfg RingDing
Kann mir einer das radar script umschreiben es funkzioniert leider nicht mehr in der 6.0 version von gmaker!
{
//Set these variables for different radar sizes etc.
border_color=c_red;
inner_color=c_black;
radar_width=100; //The size of the radar is 4:3, just like the room.
radar_height=100;
dot_color[0]=c_red;
dot_color[1]=c_blue;
dot_color[2]=c_purple;
viewrect_color=c_red;
//First, we draw the rectangle of the radar.
pen_color=border_color;
brush_color=inner_color;
brush_style=bs_solid;
draw_rectangle(view_left[0],view_top[0],view_left[0]+radar_width,view_top[0]+radar_height);
//Now we will draw the rectangle of the current view.
draw_rectangle(view_left[0]+view_left[0]/room_width *radar_width,
view_top[0] +view_top[0] /room_height*radar_height,
view_left[0]+(view_left[0]+view_width[0])/room_width *radar_width,
view_top[0] +(view_top[0]+view_height[0])/room_height*radar_height);
//Now we draw the dots of the objects.
brush_color=dot_color[0];
with(objectname) //That is the first object to be shown on radar
{
draw_pixel(view_left[0]+x/room_width*mouse.radar_width +1,
view_top[0]+y/room_height*mouse.radar_height+1);
}
brush_color=dot_color[1];
with(objectname) //That is the second object to be shown on radar
{
draw_pixel(view_left[0]+x/room_width*mouse.radar_width +1,
view_top[0]+y/room_height*mouse.radar_height+1);
}
mfg RingDing