Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_dunebud_sandcastle_arrow_Step_0

(view raw script w/o annotations or w/e)
1
if (move == true)
2
{
3
    for (i = 0; i < attack_mult; i++)
4
    {
5
        x += lengthdir_x(attack_speed, image_angle);
6
        y += lengthdir_y(attack_speed, image_angle);
7
        if (place_meeting(x, y, obj_attack_boundary_box))
8
        {
9
            move = false;
10
            alarm[0] = fade_alarm;
11
            break;
12
        }
13
    }
14
}
15
if (fade == true)
16
{
17
    if (image_alpha > 0)
18
    {
19
        image_alpha -= 0.1;
20
        if (image_alpha <= 0)
21
            instance_destroy();
22
    }
23
}