Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_mechanical_spawner_hsaws_Create_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
yy[0] = 320
5
yy[1] = 380
6
yy[2] = 440
7
var saw_speed = 12
8
switch side
9
{
10
    case -1:
11
        xx[0] = -30
12
        xx[1] = 670
13
        spd[0] = saw_speed
14
        spd[1] = (-saw_speed)
15
        break
16
    case 1:
17
        xx[1] = -30
18
        xx[0] = 670
19
        spd[1] = saw_speed
20
        spd[0] = (-saw_speed)
21
        break
22
}
23
24
instance_create_depth(clamp(xx[0], 40, 600), clamp(yy[0], 40, 440), -100, obj_flowey_battle_mechanical_saw_warning)
25
instance_create_depth(clamp(xx[1], 40, 600), clamp(yy[1], 40, 440), -100, obj_flowey_battle_mechanical_saw_warning)
26
instance_create_depth(clamp(xx[0], 40, 600), clamp(yy[2], 40, 440), -100, obj_flowey_battle_mechanical_saw_warning)
27
alarm[0] = 17
alarm[0]

if live_call() return global.live_result; var saw1 = instance_create_depth(xx[0], yy[0], -100, obj_flowey_battle_phase_2_mechanical_saw) var saw2 = instance_create_depth(xx[1], yy[1], -100, obj_flowey_battle_phase_2_mechanical_saw) var saw3 = instance_create_depth(xx[0], yy[2], -100, obj_flowey_battle_phase_2_mechanical_saw) saw1.hspeed = spd[0] saw2.hspeed = spd[1] saw3.hspeed = spd[0] instance_destroy()