Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_ceroba_flower_spray_spawner_pacifist_Alarm_3

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
audio_play_sound(snd_enemy_bullet_shot, 1, 0)
4
var bullet = instance_create(x, y, obj_battle_enemy_attack_ceroba_flower_spray_bullet)
5
bullet.speed = bullet_speed_alt
6
bullet.direction = (point_direction(x, y, 320, 320)) + bullet_spread_alt
7
if (bullet_spread_inc == true)
8
{
9
    if (bullet_spread_alt < bullet_spread_alt_max)
10
        bullet_spread_alt += bullet_spread_amount
11
    else
12
    {
13
        bullet_spread_inc = false
14
        bullet_spread_alt -= (bullet_spread_amount / 2)
15
    }
16
}
17
else if (bullet_spread_alt > ((-bullet_spread_alt_max) - bullet_spread_amount / 2))
18
    bullet_spread_alt -= bullet_spread_amount
19
else
20
{
21
    bullet_spread_inc = true
22
    bullet_spread_alt += (bullet_spread_amount / 2)
23
}
24
alarm[3] = 2
alarm[3]

if live_call() return global.live_result; audio_play_sound(snd_enemy_bullet_shot, 1, 0) var bullet = instance_create(x, y, obj_battle_enemy_attack_ceroba_flower_spray_bullet) bullet.speed = bullet_speed_alt bullet.direction = (point_direction(x, y, 320, 320)) + bullet_spread_alt if (bullet_spread_inc == true) { if (bullet_spread_alt < bullet_spread_alt_max) bullet_spread_alt += bullet_spread_amount else { bullet_spread_inc = false bullet_spread_alt -= (bullet_spread_amount / 2) } } else if (bullet_spread_alt > ((-bullet_spread_alt_max) - bullet_spread_amount / 2)) bullet_spread_alt -= bullet_spread_amount else { bullet_spread_inc = true bullet_spread_alt += (bullet_spread_amount / 2) } alarm[3] = 2 image_xscale = 1.5 image_yscale = 1.5
25
image_xscale = 1.5
26
image_yscale = 1.5