Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_asgore_hand_vertical_Create_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
image_alpha = 0;
4
image_angle += 90;
5
image_xscale = 2;
6
image_yscale = 2;
7
y_target = 240 + (240 - y);
8
bullet_number = 10;
9
route_distance = abs(y_target - ystart);
10
spawn_point_inc = route_distance / bullet_number;
11
current_spawn_point = spawn_point_inc;
12
if (y > 320)
13
{
14
    vspeed = -7;
15
}
16
else
17
{
18
    image_xscale *= -1;
19
    vspeed = 7;
20
}
21
if (x < 320)
22
    image_yscale *= -1;