Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_super_ball_1_creator_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (obj_heart_battle_fighting_parent.movement_mode == 2)
4
    instance_create_depth(320, 320, -9999, obj_battle_enemy_attack_axis_hand)
5
global.image_alpha_enemy_attacking_immunity = true
6
noloop = false
7
scene = 0
8
axis_deg = 0
9
axis_x_offset = 200
10
box_resize = false
11
if (global.enemy_mode == 0)
12
{
13
    axis_deg_inc = 2
14
    launch_speed = 12
15
}
16
else if (global.enemy_mode == 1)
17
{
18
    axis_deg_inc = 2.5
19
    launch_speed = 13
20
}
21
else if (global.enemy_mode == 2)
22
{
23
    axis_deg_inc = 3
24
    launch_speed = 14
25
}
26
else if (global.enemy_mode == 3)
27
{
28
    axis_deg_inc = 3.5
29
    launch_speed = 15
30
}
31
else if (global.enemy_mode < 6)
32
{
33
    box_resize = true
34
    axis_deg_inc = 0
35
    launch_speed = 16
36
}
37
else if (global.enemy_mode == 6)
38
{
39
    axis_deg_inc = 4
40
    launch_speed = 17
41
}
42
else if (global.enemy_mode == 7)
43
{
44
    axis_deg_inc = 4.5
45
    launch_speed = 18
46
}
47
else if (global.enemy_mode == 8)
48
{
49
    axis_deg_inc = 8
50
    launch_speed = 19
51
}
52
if (obj_battlebox_controller_axis.axis_trash_meter < 100)
53
    instance_destroy()
54
if instance_exists(obj_quote_battle_axis_attack_end)
55
    scene = -1