Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_spray_bottle_Alarm_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (image_alpha < 1)
4
{
5
    image_alpha += 0.2
6
    alarm[0] = 2
alarm[0]

if live_call() return global.live_result; if (image_alpha < 1) { image_alpha += 0.2 alarm[0] = 2 } else alarm[1] = 15
7
}
8
else
9
    alarm[1] = 15
alarm[1]

if live_call() return global.live_result; image_index = 0 image_speed = 1 for (var i = 0; i < spray_amount; i++) { var new_spray = instance_create_depth((x - 8), (y - 9), (obj_heart_battle_fighting_parent.depth - 1), obj_battle_enemy_attack_spray_bottle_spray) new_spray.direction = 135 + i * (90 / spray_amount) } alarm[1] = spray_interval