СПС но я по другому сделал я через
switch round(health/10)
{
case 0: draw_sprite(sprite25,0, view_xview+80, view_yview+352); break;
case 1: draw_sprite(sprite24,0, view_xview+80, view_yview+352); break;
case 2: draw_sprite(sprite23,0, view_xview+80, view_yview+352); break;
case 3: draw_sprite(sprite22,0, view_xview+80, view_yview+352); break;
case 4: draw_sprite(sprite27,0, view_xview+80, view_yview+352); break;
case 5: draw_sprite(sprite21,0, view_xview+80, view_yview+352); break;
case 6: draw_sprite(sprite20,0, view_xview+80, view_yview+352); break;
case 7: draw_sprite(sprite19,0, view_xview+80, view_yview+352); break;
case 8: draw_sprite(sprite18,0, view_xview+80, view_yview+352); break;
case 9: draw_sprite(sprite17,0, view_xview+80, view_yview+352); break;
}