Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_dunebud_chase_enemy_Create_0

(view raw script w/o annotations or w/e)
1
image_speed_rise = 1/3;
2
image_speed_sink = 1/3;
3
image_speed_rise_c = 1/3;
4
image_speed_sink_c = 1/3;
5
image_speed = image_speed_sink;
6
image_index = 0;
7
if (x == obj_dunebud_a.x)
8
{
9
    id_dunebud = instance_place(x, y, obj_dunebud_a);
10
    global.id_store = id;
11
    with (id_dunebud)
12
    {
13
        image_alpha = 0;
14
        time_elapsed = 0;
15
        sign_modifier = 1;
16
        id_dunebud_chase = global.id_store;
17
    }
18
}
19
else
20
{
21
    id_dunebud = instance_place(x, y, obj_dunebud_b);
22
    global.id_store = id;
23
    with (id_dunebud)
24
    {
25
        image_alpha = 0;
26
        time_elapsed = 0;
27
        sign_modifier = 1;
28
        id_dunebud_chase = global.id_store;
29
    }
30
}
31
id_dunebud_attack = -4;
32
if (id_dunebud.sprite_index == spr_dunebud_critical)
33
{
34
    sprite_index = spr_dunebud_sink_c;
35
    image_speed = image_speed_sink_c;
36
    image_index = 0;
37
}