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
    vspeed = -7
14
else
15
{
16
    image_xscale *= -1
17
    vspeed = 7
18
}
19
if (x < 320)
20
    image_yscale *= -1