/// @description Insert description here
// You can write your code in this editor
if invinc_timer>0 then alp=0.5 else alp=1
draw_sprite_ext(sprite_index,image_index,x,y,2,2,0,c_white,alp)
draw_sprite_ext(wep_sprite,0,x+lengthdir_x(25,mouse_direction),y+lengthdir_y(25,mouse_direction),2,2*side,mouse_direction,c_white,alp)

/*surface_set_target(wall_surf)
draw_clear_alpha(c_black,0)
for(i=0;i<instance_number(obj_wall);i++)
{
draw_set_alpha(0.6)
a=instance_find(obj_wall,i)
draw_sprite(spr_wall,0,a.x-camera_get_view_x(view_camera),a.y-camera_get_view_y(view_camera))
}
gpu_set_blendmode_ext_sepalpha(bm_src_alpha,bm_inv_src_alpha,bm_zero,bm_one)
for(i=0;i<element_count;i++)
{
el_x[i]+=el_speed[i]
if el_x[i]>1024 then {el_y[i]=random(768) alpha[i]=random(1) el_speed[i]=random_range(2,5) el_text[i]=text_random() el_x[i]=-string_width(el_text[i]) }	
draw_set_alpha(alpha[i])
draw_set_color(c_lime)
draw_text(el_x[i],el_y[i],el_text[i])

}
gpu_set_blendmode(bm_normal)
draw_set_alpha(1)
draw_set_color(c_white)
surface_reset_target()
draw_surface(wall_surf,camera_get_view_x(view_camera),camera_get_view_y(view_camera))*/