Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_axis_turret_twinkle_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (image_index >= (image_number - 1))
4
{
5
    image_alpha = 0
6
    if (!alarm[1])
7
        alarm[1] = spawn_delay
alarm[1]

instance_destroy() instance_create_depth(x, y, -100, obj_battle_enemy_attack_axis_turret)
8
}
9
if (image_index >= 3 && (!audio_noloop))
10
{
11
    audio_noloop = true
12
    var twinkle = audio_play_sound(snd_axis_twinkle, 1, 0)
13
    audio_sound_pitch(twinkle, random_range(0.8, 1.2))
14
    audio_sound_gain(twinkle, 0.7, 0)
15
}