Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_berdly_wire_release_example_2_Draw_0

(view raw script w/o annotations or w/e)
1
if (sprite_index == spr_cutscene_25_berdly_plug)
2
{
3
    draw_self();
4
}
5
else
6
{
7
    var x_offset = (image_xscale == -2) ? 30 : 0;
8
    draw_sprite_part_ext(spr_cutscene_25_berdly_plug, 0, 0, 0, 20, 100, (x - 20) + x_offset, y - 210, 2, 2, c_white, 1);
9
    draw_self();
10
}
11
if (con == 5 || con == 10)
12
{
13
    elecsiner++;
14
    draw_self();
15
    if (con >= 10)
16
        draw_sprite_ext(spr_cutscene_25_berdly_grab_electrocute_yellowarm, image_index + 2, x, y, image_xscale, image_yscale, image_angle, c_white, abs(sin(elecsiner / 10)));
17
}
18
if (con == 20)
19
{
20
    draw_set_color(c_white);
21
    draw_circle(x, y, circlesize, false);
22
    circlesize += 10;
23
}