Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_1_attack_10_creator_Draw_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
if (room == rm_battle_flowey)
4
    draw_sprite_ext(flowey_face_sprite, 0, flowey_face_x, flowey_face_y, 3 + random_range(-0.1, 0.1), 3 + random_range(-0.1, 0.1), 0, c_white, 0.5);
5
draw_set_color(c_black);
6
draw_set_alpha(transition_overlay_alpha);
7
draw_rectangle(0, 0, 640, 480, false);
8
draw_set_alpha(1);
9
if (instance_exists(obj_battle_hp_max_self))
10
{
11
    if (global.current_hp_self < 10 && global.current_hp_self > -10)
12
        draw_text_colour((314 + obj_battle_hp_max_self.sprite_width) - 25, 20, string_hash_to_newline("0" + string(global.current_hp_self) + " / " + string(global.max_hp_self)), c_white, c_white, c_white, c_white, global.image_alpha_enemy_attacking);
13
    else
14
        draw_text_colour((314 + obj_battle_hp_max_self.sprite_width) - 25, 20, string_hash_to_newline(string(global.current_hp_self) + " / " + string(global.max_hp_self)), c_white, c_white, c_white, c_white, global.image_alpha_enemy_attacking);
15
}