Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_cactony_needle_top_needle_Step_0

(view raw script w/o annotations or w/e)
1
if (launched == false)
2
{
3
    x += lengthdir_x(prep_speed, image_angle)
4
    y += lengthdir_y(prep_speed, image_angle)
5
}
6
else
7
{
8
    if (move == true)
9
    {
10
        i = 0
11
        while (i < attack_mult)
12
        {
13
            x += lengthdir_x(attack_speed, image_angle)
14
            y += lengthdir_y(attack_speed, image_angle)
15
            if place_meeting(x, y, obj_attack_boundary_box)
16
            {
17
                move = false
18
                alarm[0] = fade_alarm
alarm[0]

fade = true
19
                break
20
            }
21
            else
22
            {
23
                i++
24
                continue
25
            }
26
        }
27
    }
28
    if (fade == true)
29
    {
30
        if (image_alpha > 0)
31
        {
32
            image_alpha -= 0.1
33
            if (image_alpha <= 0)
34
                instance_destroy()
35
        }
36
    }
37
}