Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_asgore_hand_horizontal_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_xscale = 2
5
image_yscale = 2
6
x_target = 320 + (320 - x)
7
bullet_number = 10
8
route_distance = abs(x_target - xstart)
9
spawn_point_inc = route_distance / bullet_number
10
current_spawn_point = 0
11
if (x > 240)
12
{
13
    hspeed = -7
14
    image_xscale *= -1
15
}
16
else
17
    hspeed = 7
18
if (y < 240)
19
    image_yscale *= -1