Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_lowpoly_spawner_hspikes_Alarm_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var side = choose(-1, 1)
4
if (side == -1)
5
{
6
    instance_create_depth(-40, 300, -100, obj_flowey_battle_phase_2_lowpoly_hspike)
7
    instance_create_depth(0, 380, -100, obj_flowey_battle_phase_2_lowpoly_hspike)
8
    instance_create_depth(-40, 460, -100, obj_flowey_battle_phase_2_lowpoly_hspike)
9
}
10
else
11
{
12
    instance_create_depth(680, 300, -100, obj_flowey_battle_phase_2_lowpoly_hspike)
13
    instance_create_depth(640, 380, -100, obj_flowey_battle_phase_2_lowpoly_hspike)
14
    instance_create_depth(680, 460, -100, obj_flowey_battle_phase_2_lowpoly_hspike)
15
}
16
var variation = irandom_range(-60, 60)
17
alarm[0] = attack_delay + variation
alarm[0]

if live_call() return global.live_result; var side = choose(-1, 1) if (side == -1) { instance_create_depth(-40, 300, -100, obj_flowey_battle_phase_2_lowpoly_hspike) instance_create_depth(0, 380, -100, obj_flowey_battle_phase_2_lowpoly_hspike) instance_create_depth(-40, 460, -100, obj_flowey_battle_phase_2_lowpoly_hspike) } else { instance_create_depth(680, 300, -100, obj_flowey_battle_phase_2_lowpoly_hspike) instance_create_depth(640, 380, -100, obj_flowey_battle_phase_2_lowpoly_hspike) instance_create_depth(680, 460, -100, obj_flowey_battle_phase_2_lowpoly_hspike) } var variation = irandom_range(-60, 60) alarm[0] = attack_delay + variation