if flash_duration > 0
{
    shader_set(sh_flash);
    
    var _alpha = flash_timer / flash_duration;
    shader_set_uniform_f(u_flash_alpha, _alpha);
 
    draw_self();
    shader_reset();
    
    flash_timer += 1;
	
}
else draw_self();