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
            attack_flower_stage += 1
11
        break
12
    case 1:
13
        image_blend = c_white
14
        if (attack_flower_timer < attack_flower_timer_max)
15
            attack_flower_timer++
16
        else
17
        {
18
            image_blend = c_red
19
            audio_play_sound(snd_bullet_warning, 1, 0)
20
            attack_flower_timer = 0
21
            attack_flower_beep_count -= 1
22
            if (attack_flower_beep_count <= 0)
23
                attack_flower_stage += 1
24
        }
25
        break
26
    case 2:
27
        instance_destroy()
28
        with (instance_create(x, y, obj_battle_enemy_attack_ceroba_opener_explosion))
29
            ring_object = other.ring_object
30
        break
31
}