jejejejjejeje :P que jeviiiiiiiiiiiiiiiiiiiiiii loco quieres formar parte de mi grupo de juego
informacion: http://gmunidad.blogspot.com/2014/06/informacion.html
informacion: http://gmunidad.blogspot.com/2014/06/informacion.html
Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.
Citarscr_draw_motionblur2-en ese scripts pones este codigo
//scr_draw_motionblur(speed,direction,x,y);
var len,dir,xp,yp,rot,i,quality,rotorig;
len=argument0;
dir=argument1;
xp=argument2;
yp=argument3;
rot=argument4;
rotorig=rot;
if(rot<0)
rot*=-1;
if(len>0||rot>0)
{
quality=3;
len/=quality;
rot/=quality*2;
rotorig/=quality*2;
var lenx,leny,times,rotinc;
times=rot;
if(len>times)
times=len;
lenx=0;
leny=0;
if(len>0)
{
lenx=lengthdir_x(len/times*quality,dir);
leny=lengthdir_y(len/times*quality,dir);
}
rotinc=rotorig/times*2*quality;
for(i=times;i>0;i-=1)
{
draw_sprite_ext(sprite_index,image_index,xp+i*lenx,yp+i*leny,image_xscale,image_yscale,image_angle+rotinc*i,image_blend,image_alpha/(times/2))
}
}else
draw_sprite_ext(sprite_index,image_index,xp,yp,image_xscale,image_yscale,image_angle,image_blend,image_alpha);
Citardraw_circle_sector4-y dentro de ese scripts pon este codigo
/* draw_circle_sector()
** by SoulRed12
**
** General form: draw_circle_sector(dir,rad,ang,seg,col,ful)
**
** Argument list:
** argument0 (dir): current direction
** argument1 (rad): circle radius
** argument2 (ang): size of arc in degrees
** argument3 (seg): arc segments
** argument4 (col): color of lines
**
** Usage: Draws a circle sector on the screen
*/
draw_set_color(argument4); //Set the color
//Draw a bunch of lines to approximate an arc
for (cc=-argument2/2; cc<argument2/2; cc+=argument2/argument3)
{
draw_line(x+lengthdir_x(argument1,argument0+cc),y+lengthdir_y(argument1,argument0+cc),x+lengthdir_x(argument1,argument0+cc+argument2/argument3),y+lengthdir_y(argument1,argument0+cc+argument2/argument3));
}
//Now draw lines to show sides of circle sector
draw_line(x,y,x+lengthdir_x(argument1,argument0+argument2/2),y+lengthdir_y(argument1,argument0+argument2/2));
draw_line(x,y,x+lengthdir_x(argument1,argument0-argument2/2),y+lengthdir_y(argument1,argument0-argument2/2));
rad=65; //the radius of the circle drawn for the base of the minimap
minRad=0; //the mini outline expanding circle's radius (starting) (this is only to give it that radar feel, you can take it out)
len=950; //the distance you want to see in the minimap
scale=len/rad; //the scale of the map (don't worry about why it's here)
alarm[0]=20; //the alarm which is used to increase the size of the mini expanding circle (if you don't want the expanding circle outline, take this out)
//if you don't want the expanding circle outline, take this out
if (minRad < rad) //if the radius of expanding circle is smaller than the radius of the minimap base
{
minRad+=1; //add 1 onto the radius of the expanding circle
}
else //if the radius of expanding circle is greater than or equal the radius of the minimap base
{
minRad=0; //set the radius of the expanding circle to 0
}
alarm[0]=2; //set this alarm again
//to move into view if your view follows a player or something
//Minimap base:
draw_set_alpha(9.0); //set alpha to make the minimap partially transparent
draw_circle_color(x,y,rad,c_green,c_green,false); //draw the minimap base
//Expanding mini circle outline:
draw_set_alpha(4.0); //set alpha to make the line partially transparent
draw_circle_color(x,y,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(x,y,rad,true); //draw a basic outline of the base
with (Other) //draw the enemies (this loops through them)
{
if (point_distance(objPlayer.x,objPlayer.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(objPlayer.x,objPlayer.y,x,y)))*(point_distance(objPlayer.x,objPlayer.y,x,y)/other.scale)),other.y-(sin(degtorad(point_direction(objPlayer.x,objPlayer.y,x,y)))*(point_distance(objPlayer.x,objPlayer.y,x,y)/other.scale)),2,c_red,c_red,false); //draw the enemy icon (basic circle)
}
}
with (objPlayer) //draw the player
{
draw_circle_color(other.x,other.y,2,c_yellow,c_yellow,false); //draw the player icon (basic circle)
}
Page generada en 0.031 segundos con 12 consultas.