Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_know_cone_blueberry_Step_0

(view raw script w/o annotations or w/e)
1
if (!instance_exists(obj_heart_battle_fighting_parent))
2
{
3
    instance_destroy()
4
    return;
5
}
6
if (image_alpha < 1 && can_move == false)
7
{
8
    image_alpha += 0.1
9
    if (image_alpha > 1)
10
        image_alpha = 1
11
    if (image_alpha == 1)
12
        can_move = true
13
}
14
if (can_move == true)
15
{
16
    game_maker_cannot_do_math = power((time_elapsed / (time_max / 2 * (1 / sqrt(max_rise))) - sqrt(max_rise)), 2)
17
    animation_disjoint_y = sign_modifier * (max_rise - round(game_maker_cannot_do_math))
18
    time_elapsed += time_increase
19
    if (time_elapsed >= time_max)
20
    {
21
        time_elapsed = 0
22
        sign_modifier = (-sign_modifier)
23
    }
24
    y = starting_position_y + animation_disjoint_y
25
    animation_disjoint_x += x_speed
26
    x = round(starting_position_x + animation_disjoint_x)
27
    game_maker_cannot_do_math = power((time_elapsed_angle / (time_max_angle / 2 * (1 / sqrt(max_rise_angle))) - sqrt(max_rise_angle)), 2)
28
    animation_disjoint_angle = sign_modifier_angle * (max_rise_angle - round(game_maker_cannot_do_math))
29
    time_elapsed_angle += time_increase_angle
30
    if (time_elapsed_angle >= time_max_angle)
31
    {
32
        time_elapsed_angle = 0
33
        sign_modifier_angle = (-sign_modifier_angle)
34
    }
35
    image_angle = animation_disjoint_angle
36
}
37
if (place_meeting(x, y, obj_dialogue_box_battle_transformation_any) && in_box == false)
38
    in_box = true
39
if ((!(place_meeting(x, y, obj_dialogue_box_battle_transformation_any))) && in_box == true)
40
{
41
    if (image_alpha > 0)
42
    {
43
        image_alpha -= 0.1
44
        if (image_alpha < 0)
45
            image_alpha = 0
46
        if (image_alpha == 0)
47
            instance_destroy()
48
    }
49
}