Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_1_attack_pellet_spin_creator_Alarm_1

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
var attack_offset = 42;
4
var box = 3154;
5
var side = choose(1, 2, 3, 4);
6
var x_offset = 0;
7
var y_offset = 0;
8
switch (side)
9
{
10
    case 1:
11
        x_offset = -160;
12
        y_offset = 0;
13
        break;
14
    case 2:
15
        x_offset = 0;
16
        y_offset = -160;
17
        break;
18
    case 3:
19
        x_offset = 160;
20
        y_offset = 0;
21
        break;
22
    case 4:
23
        x_offset = 0;
24
        y_offset = 160;
25
        break;
26
}
27
instance_create_depth(box.x + x_offset, box.y + y_offset, -300, obj_flowey_1_attack_pellet_circle_spawner);
28
alarm[1] = attack_offset;
gml_Object_obj_flowey_1_attack_pellet_spin_creator_Alarm_1.gml

if (live_call()) return global.live_result; var attack_offset = 42; var box = 3154; var side = choose(1, 2, 3, 4); var x_offset = 0; var y_offset = 0; switch (side) { case 1: x_offset = -160; y_offset = 0; break; case 2: x_offset = 0; y_offset = -160; break; case 3: x_offset = 160; y_offset = 0; break; case 4: x_offset = 0; y_offset = 160; break; } instance_create_depth(box.x + x_offset, box.y + y_offset, -300, obj_flowey_1_attack_pellet_circle_spawner); alarm[1] = attack_offset;