Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_gray_wheel_petal_gray_Step_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
if (active == false)
4
{
5
    image_alpha = obj_flowey_battle_gray_wheel.image_alpha;
6
    image_xscale = obj_flowey_battle_gray_wheel.image_xscale;
7
    image_yscale = image_xscale;
8
    depth = obj_flowey_battle_gray_wheel.depth + 1;
9
    switch (image_index)
10
    {
11
        case 0:
12
            dist = 100;
13
            dir = 235;
14
            break;
15
        case 1:
16
            dist = 100;
17
            dir = 305;
18
            break;
19
        case 2:
20
            dist = 110;
21
            dir = 0;
22
            break;
23
        case 3:
24
            dist = 105;
25
            dir = 57;
26
            break;
27
        case 4:
28
            dist = 100;
29
            dir = 123;
30
            break;
31
        case 5:
32
            dist = 110;
33
            dir = 180;
34
            break;
35
    }
36
}
37
else
38
{
39
    dir += 10;
40
    dist += 20;
41
    image_alpha -= 0.1;
42
    if (image_alpha <= 0)
43
        instance_destroy();
44
}
45
x = obj_flowey_battle_gray_wheel.x + lengthdir_x(dist * image_xscale, dir);
46
y = obj_flowey_battle_gray_wheel.y + lengthdir_y(dist * image_xscale, dir);