Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_insomnitot_zzz_big_Step_0

(view raw script w/o annotations or w/e)
1
if (!instance_exists(obj_heart_battle_fighting_parent))
2
    instance_destroy()
3
game_maker_cannot_do_math = power((time_elapsed / (time_max / 2 * (1 / sqrt(max_rise))) - sqrt(max_rise)), 2)
4
animation_disjoint_x = sign_modifier * (max_rise - round(game_maker_cannot_do_math))
5
time_elapsed += time_increase
6
if (time_elapsed >= time_max)
7
{
8
    time_elapsed = 0
9
    sign_modifier = (-sign_modifier)
10
}
11
x = draw_position_x + animation_disjoint_x
12
y -= y_increase
13
if instance_exists(obj_dialogue_box_battle_transformation_any)
14
{
15
    if (bbox_bottom < obj_dialogue_box_battle_transformation_any.bbox_top)
16
        instance_destroy()
17
}
18
else
19
    instance_destroy()