Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_lowpoly_spawner_hspikes_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
alarm[0] = 15
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
4
attack_delay = 140