Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_guardener_attack_12_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var box = obj_dialogue_box_battle_transformation_any
4
switch scene
5
{
6
    case 0:
7
        if (obj_guardener_guy_a.active == false && obj_guardener_guy_a.is_on_target)
8
        {
9
            instance_create(-40, (box.y + 10), obj_guardener_guy_c_gun)
10
            cutscene_advance()
11
        }
12
        obj_guardener_guy_a.active = false
13
        break
14
    case 1:
15
    case 3:
16
        var adv = 1
17
        with (obj_guardener_guy_c_gun)
18
        {
19
            var x_target = box.bbox_left - 60
20
            x = lerp(x, x_target, 0.2)
21
            y = lerp(y, (box.y + 10), 0.2)
22
        }
23
        if (adv <= 0)
24
            cutscene_advance()
25
        break
26
    case 2:
27
        break
28
}