Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_1_attack_6_tear_Step_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
var box = 3154;
4
image_angle = direction + 90;
5
if (vspeed > vsp_max)
6
    vspeed = vsp_max;
7
if (bbox_bottom >= box.bbox_bottom && vspeed > 0)
8
{
9
    if (stage < 3)
10
    {
11
        var child_number;
12
        if (stage == 1)
13
            child_number = 2;
14
        else
15
            child_number = 3;
16
        for (var i = 0; i < child_number; i++)
17
        {
18
            with (instance_create_depth(x, y - 10, -100, obj_flowey_1_attack_6_tear))
19
            {
20
                stage = other.stage + 1;
21
                if (stage == 2)
22
                    sprite_index = spr_attack_crying_flowey_tear_medium;
23
                else
24
                    sprite_index = spr_attack_crying_flowey_tear_small;
25
                var dir_offset = 10;
26
                direction = (90 - dir_offset) + (i * ((dir_offset * 2) / (child_number - 1)));
27
                if (stage == 2)
28
                    speed = 6;
29
                if (stage == 3)
30
                    speed = 7;
31
                image_angle = direction + 90;
32
            }
33
        }
34
    }
35
    instance_destroy();
36
}