Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_spray_bottle_Alarm_1

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
image_index = 0
4
image_speed = 1
5
for (var i = 0; i < spray_amount; i++)
6
{
7
    var new_spray = instance_create_depth((x - 8), (y - 9), (obj_heart_battle_fighting_parent.depth - 1), obj_battle_enemy_attack_spray_bottle_spray)
8
    new_spray.direction = 135 + i * (90 / spray_amount)
9
}
10
alarm[1] = spray_interval
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