Undertale script viewer

← back to main script listing

gml_Object_obj_stormstar_Other_13

(view raw script w/o annotations or w/e)
1
image_speed = 0.5;
2
image_blend = c_white;
3
con = 3;
4
alarm[4] = 20;
5
image_speed = 0;
6
speed = 0;
7
dir = random(360);
8
if (big == 0)
9
{
10
    if (h_mode == 0)
11
    {
12
        for (i = 0; i < 7; i += 1)
13
        {
14
            star = instance_create(x, y, obj_regstar_blt);
15
            star.h_mode = h_mode;
16
            star.friction = -0.2;
17
            star.speed = 1.4;
18
            star.direction = dir + ((360/7) * i);
19
        }
20
        with (obj_stormstar_gen)
21
            event_user(1);
22
    }
23
    if (h_mode == 1)
24
    {
25
        for (i = 0; i < 7; i += 1)
26
        {
27
            star = instance_create(x, y, obj_regstar_blt);
28
            star.h_mode = h_mode;
29
            star.friction = -0.25;
30
            star.speed = 1.5;
31
            star.direction = dir + ((360/7) * i);
32
        }
33
        with (obj_stormstar_gen)
34
            event_user(1);
35
    }
36
}
37
if (big == 1)
38
{
39
    with (obj_stormstar_gen)
40
        event_user(2);
41
    for (i = 0; i < 20; i += 1)
42
    {
43
        star = instance_create(x, y, obj_regstar_blt);
44
        star.friction = -0.3;
45
        star.speed = 1.6;
46
        star.direction = dir + (22.5 * i);
47
        star.h_mode = h_mode;
48
    }
49
    dir += 9;
50
    for (i = 0; i < 20; i += 1)
51
    {
52
        star = instance_create(x, y, obj_regstar_blt);
53
        star.friction = -0.24;
54
        star.speed = 0.8;
55
        star.direction = dir + (22.5 * i);
56
        star.h_mode = h_mode;
57
    }
58
    for (i = 0; i < 20; i += 1)
59
    {
60
        star = instance_create(x, y, obj_regstar_blt);
61
        star.friction = -0.18;
62
        star.speed = 0.2;
63
        star.direction = dir + (18 * i);
64
        star.h_mode = h_mode;
65
    }
66
}
67
ex = instance_create(x, y, obj_explodestar);
68
ex.sprite_index = sprite_index;
69
ex.image_index = image_index;
70
ex.image_blend = image_blend;
71
ex.image_speed = image_speed;
72
ex.aa = aa;
73
ex.big = big;
74
ex.depth = depth;
75
ex.image_alpha = image_alpha;
76
ex.image_angle = image_angle;
77
instance_destroy();