Deltarune (Chapter 5) script viewer

← back to main script listing

gml_Object_obj_scarecrow_intimidate2_Draw_0

related scripts: Create_0Draw_0 Step_0

(view raw script w/o annotations or w/e)
1
draw_set_color(c_black);
2
draw_set_alpha(image_alpha3 / 1.4);
3
d_rectangle(camerax(), y - 42, camerax() + camerawidth(), y + 80, false);
4
draw_set_alpha(1);
5
draw_set_color(c_white);
6
if (image_xscale < 0.5)
7
    image_xscale += 0.05;
8
draw_self();
9
draw_set_font(
scr_84_get_font
scr_84_get_font

function
scr_84_get_font(arg0)
{ if (!variable_global_exists("chemg_last_get_font")) global.chemg_last_get_font = ""; if (arg0 != global.chemg_last_get_font) global.chemg_last_get_font = arg0; return ds_map_find_value(global.font_map, arg0); }
("mainbig"));
10
if (image_alpha2 < 1 && con != 1)
11
    image_alpha2 += 0.1;
12
if (con == 0)
13
{
14
    draw_text_color(x - 42, y + 40, stringsetloc(
HIT IT!
"HIT IT!", "obj_scarecrow_intimidate2_slash_Draw_0_gml_19_0"
), c_white, c_white, c_white, c_white, image_alpha2);
15
    draw_sprite_ext(spr_undertale_combat_thing2, 0, (x + bar_x) - 137 - 7 - 60, y - 17, 1, 1, 0, c_white, image_alpha3);
16
}