Undertale script viewer

← back to main script listing

gml_Object_obj_floweypipetest_Draw_0

(view raw script w/o annotations or w/e)
1
if (frozen == 0)
2
    siner += 1;
3
if (flash == 0)
4
{
5
    image_blend = c_white;
6
    blend2 = 16777215;
7
}
8
if (flash == 1)
9
{
10
    draw_set_color(c_yellow);
11
    draw_set_alpha(sin(siner / 3) / 2);
12
    draw_ellipse_color(x - 70, y + 50, x + 30, y - 40, c_aqua, c_black, 0);
13
    draw_set_alpha(1);
14
    image_blend = make_color_rgb(100 - (sin(siner / 3) * 100), 230, 255);
15
}
16
if (flash == 2)
17
{
18
    draw_set_color(c_yellow);
19
    draw_set_alpha(sin(siner / 3) / 2);
20
    draw_ellipse_color(x + op + 70, y + 50, (x + op) - 30, y - 40, c_orange, c_black, 0);
21
    draw_set_alpha(1);
22
    blend2 = make_color_rgb(230, 180, 100 - (sin(siner / 3) * 100));
23
}
24
for (i = 0; i < 10; i += 1)
25
{
26
    offx = (x + (sin((i - 45) / 3) * 60)) - (i * 2);
27
    offy = y + (cos((i - 45) / 3) * 50) + (cos((i + siner) / 6) * 8);
28
    offs = sin((siner + (i * 4)) / 6) * 2;
29
    if (offs > 1)
30
        offs = (offs - 1) / 3;
31
    else
32
        offs = 0;
33
    if (global.soul_rescue < 1)
34
    {
35
        draw_sprite_ext(sprite_index, image_index, offx, offy, 1 + offs, 1 + offs, (i * 20) + 30, image_blend, 1);
36
    }
37
    else
38
    {
39
        offy = y + (cos((i - 45) / 3) * 50) + (cos((i + siner) / 6) * 4);
40
        offs = 0;
41
        draw_sprite_ext(sprite_index, image_index, offx, offy, 1 + offs, 1 + offs, (i * 20) + 30, c_gray, 1);
42
    }
43
}
44
for (i = 0; i < 10; i += 1)
45
{
46
    offx2 = (x - (sin((i - 45) / 3) * 60)) + (i * 2) + op;
47
    offy2 = y + (cos((i - 45) / 3) * 50) + (cos((i + siner) / 6) * 8);
48
    offs2 = sin((siner + (i * 4)) / 6) * 2;
49
    if (offs2 > 1)
50
        offs2 = (offs2 - 1) / 3;
51
    else
52
        offs2 = 0;
53
    if (global.soul_rescue < 2)
54
    {
55
        draw_sprite_ext(sprite_index, image_index, offx2, offy2, 1 + offs2, 1 + offs2, (i * -20) + 150, blend2, 1);
56
    }
57
    else
58
    {
59
        offy2 = y + (cos((i - 45) / 3) * 50) + (cos((i + siner) / 6) * 4);
60
        offs2 = 0;
61
        draw_sprite_ext(sprite_index, image_index, offx2, offy2, 1 + offs2, 1 + offs2, (i * -20) + 150, c_gray, 1);
62
    }
63
}