Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_growtangle_Draw_0

(view raw script w/o annotations or w/e)
1
if (global.chapter == 4 && instance_exists(obj_sound_of_justice_enemy) && obj_sound_of_justice_enemy.growtangleredcon > 0)
2
    draw_sprite_ext(spr_battlebg_0_whitebg, 1, x, y, image_xscale, image_yscale, image_angle, c_red, obj_sound_of_justice_enemy.growtangleredtimer / 10);
3
else
4
    draw_sprite_ext(sprite_index, 1, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
5
if (customBox && growth && growcon != 2)
6
{
7
    var _scale = sizer * growscale;
8
    draw_sprite_ext(spr_custom_box, 0, x, y, _scale, _scale, image_angle, image_blend, image_alpha);
9
}
10
else
11
{
12
    draw_self();
13
}
14
if (global.chapter == 4)
15
{
16
    if (instance_exists(obj_sound_of_justice_enemy) && instance_exists(obj_spearblocker) && instance_exists(obj_heart))
17
    {
18
        var _r = lerp(0, 22, obj_spearblocker.shadowpower / 1);
19
        var _c = obj_spearblocker.light_green;
20
        draw_sprite_ext(spr_sneo_bigcircle, 0, obj_heart.x + 10, obj_heart.y + 10, _r / 25, _r / 25, 0, _c, 1);
21
    }
22
}