Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_ceroba_flower_exploding_Step_0

(view raw script w/o annotations or w/e)
1
switch (attack_flower_stage)
2
{
3
    case 0:
4
        if (image_xscale < 1 || image_yscale < 1)
5
        {
6
            image_xscale += 0.1;
7
            image_yscale += 0.1;
8
        }
9
        else
10
        {
11
            attack_flower_stage += 1;
12
        }
13
        break;
14
    case 1:
15
        image_blend = c_white;
16
        if (attack_flower_timer < attack_flower_timer_max)
17
        {
18
            attack_flower_timer++;
19
        }
20
        else
21
        {
22
            image_blend = c_red;
23
            audio_play_sound(snd_bullet_warning, 1, 0);
24
            attack_flower_timer = 0;
25
            attack_flower_beep_count -= 1;
26
            if (attack_flower_beep_count <= 0)
27
                attack_flower_stage += 1;
28
        }
29
        break;
30
    case 2:
31
        instance_destroy();
32
        with (instance_create(x, y, obj_battle_enemy_attack_ceroba_opener_explosion))
33
            ring_object = other.ring_object;
34
        break;
35
}