Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_micro_barrage_Step_0

(view raw script w/o annotations or w/e)
1
if (image_alpha < 1 && can_move == false)
2
{
3
    image_alpha += 0.1
4
    if (image_alpha > 1)
5
        image_alpha = 1
6
    if (image_alpha == 1)
7
    {
8
        angle = point_direction(x, y, obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y)
9
        can_move = true
10
    }
11
}
12
if (can_move == true)
13
{
14
    y += grav_total
15
    grav_total += grav
16
    x += lengthdir_x(move_speed, angle)
17
    y += lengthdir_y(move_speed, angle)
18
    if (!(place_meeting(x, y, obj_dialogue_box_battle_transformation_any)))
19
    {
20
    }
21
}
22
if (can_fade == true)
23
{
24
    image_alpha -= 0.1
25
    if (image_alpha < 0)
26
        image_alpha = 0
27
    if (image_alpha == 0)
28
        instance_destroy()
29
}