x = Player.x+1;

y = Player.y+8;


image_angle = point_direction(x,y,mouse_x,mouse_y);


firingdelay = firingdelay - 1;

recoil = max(0,recoil - 1);


if (mouse_check_button(mb_left)) && (firingdelay

{

recoil = 4;

firingdelay = 40;

with (instance_create_layer(x,y,"Attak",oAttak))

{

speed = 1;

direction = other.image_angle + random_range(-3,3);

image_angle = direction

}

}


x = x - lengthdir_x(recoil, image_angle);

y = y - lengthdir_y(recoil, image_angle);


if (image_angle > 90) && (image_angle

{

image_yscale = -1;

}

else

{

image_yscale = 1;

}



์œ ํŠœ๋ธŒ์— ์ด์˜๋Š”๊ฑฐ ๋”ฐ๋ผ์„œ ๋งŒ๋“ค์—ˆ๋”๋‹ˆ ๊ฒ€๊ณต๊ฒฉ์ด ์ผ์ž๋กœ ์ญ‰ ๋‚˜๊ฐ€๊ณ 


๋ฒฝ์— ๋ถ€๋”ช์น˜๋ฉด ์ž๋™์œผ๋กœ ์‚ฌ๋ผ์ง


์ด๊ฑฐ ์ˆ˜์ •ํ•˜๋ ค๋ฉด ๋ฌด์Šจ ๋ช…๋ น์–ด ๋„ฃ์–ด์•ผํ•จ??