Undertale script viewer

← back to main script listing

gml_Object_obj_flowey_master_Other_19

(view raw script w/o annotations or w/e)
1
loadtimer = 25;
2
fileset = 3;
3
global.my_hp = 50;
4
if (destroyer < 28)
5
    obj_vsflowey_heart.move = 1;
6
else
7
    obj_vsflowey_heart.move = 0;
8
alarm[9] = 3;
gml_Object_obj_flowey_master_Alarm_9.gml

snd_play(snd_hurt1_c); global.my_hp = 0; global.my_inv = 40; instance_create(0, 0, obj_vsflowey_shaker); obj_vsflowey_heart.move = 0; obj_vsflowey_heart.alarm[5] = 5; if (destroyer == 1) obj_vsflowey_heart.alarm[5] = 20; if (destroyer > 30) { global.my_hp = 1; obj_vsflowey_heart.move = 0; obj_vsflowey_heart.alarm[5] = -1; }
9
destroyer += 1;
10
if (destroyer > 3)
11
{
12
    flx = 0 + random(320);
13
    fly = 0 - random(60);
14
}
15
obj_vsflowey_heart.depth = depth - 1;
16
obj_vsflowey_heart.x = 314;
17
obj_vsflowey_heart.y = 422;
18
obj_vsflowey_heart.special = 1;
19
obj_vsflowey_heart.sprite_index = spr_ourheart;
20
caster_stop(all);
21
caster_play(mus_hit, 1, 1);
22
with (obj_floweybodyparent)
23
{
24
    siner = 0;
25
    image_index = 0;
26
}
27
with (obj_floweybullet_parent)
28
    instance_destroy();
29
if (o_kill == 0)
30
    o_kill = 1;
31
else
32
    o_kill = 0;
33
if (o_kill == 0)
34
{
35
    with (obj_floweyx_mouth)
36
    {
37
        laugh = 0;
38
        mode = 0;
39
        rotbonus = 0;
40
        xbonus = 0;
41
        ybonus = 0;
42
    }
43
    obj_floweyx_flipeye.md = 0;
44
    obj_floweyx_flipeye.con = 0;
45
    repeat (30)
46
    {
47
        m = instance_create(110 + random(400), 200, obj_gigavine);
48
        with (m)
49
        {
50
            visible = true;
51
            image_xscale = 1;
52
            image_yscale = 1;
53
            image_alpha = 1;
54
            depth = 12;
55
            xx = obj_vsflowey_heart.x + 8;
56
            yy = obj_vsflowey_heart.y + 8;
57
            direction = point_direction(x, y, xx, yy);
58
            image_angle = direction;
59
        }
60
    }
61
}
62
else
63
{
64
    with (obj_floweyx_mouth)
65
    {
66
        laugh = 1;
67
        mode = 2;
68
        b = instance_create(271, 214, obj_mouthbeam);
69
        b.depth = depth + 1;
70
        rotbonus = 15;
71
        xbonus = -4;
72
        ybonus = 6;
73
    }
74
}