Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_1_attack_9_head_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (image_speed == 0)
4
    return;
5
if (image_index >= 5 && image_index < 11)
6
{
7
    with (obj_flowey_1_attack_9_thorns)
8
    {
9
        if (x > other.x)
10
            speed_target = 6
11
    }
12
}
13
else if (image_index >= 16 && image_index < 22)
14
{
15
    with (obj_flowey_1_attack_9_thorns)
16
    {
17
        if (x < other.x)
18
            speed_target = 6
19
    }
20
}
21
else
22
{
23
    with (obj_flowey_1_attack_9_thorns)
24
        speed_target = -1
25
}