Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_guardener_meter_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (curr_fill != 0)
4
{
5
    switch global.action_2_selected_count
6
    {
7
        case 1:
8
            curr_fill = 5
9
            break
10
        case 2:
11
            curr_fill = 4
12
            break
13
        case 3:
14
            curr_fill = 3
15
            break
16
        case 4:
17
            curr_fill = 2
18
            break
19
        case 5:
20
            curr_fill = 1
21
            break
22
    }
23
24
}
25
if (global.enemy_attacking == true && curr_fill == prev_fill && global.action_2_selected_count < 5)
26
    is_hidden = true
27
else
28
    is_hidden = false
29
if (!is_hidden)
30
{
31
    x = lerp(x, 30, 0.15)
32
    y = 197
33
}
34
else
35
    x = lerp(x, -100, 0.25)