if flash_timer > 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 -= global.time_scale;
}
else
    draw_self();


if global.developer_mode
{
	draw_set_halign(fa_left);
	draw_set_valign(fa_middle);
	draw_set_font(fTest);

	draw_text(x + 72, y, sprite_get_name(sprite_index) + " " + string(image_index));
}