Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_guardener_attack_3_Step_0

(view raw script w/o annotations or w/e)
1
var box = obj_dialogue_box_battle_transformation_any
2
switch scene
3
{
4
    case 0:
5
        cutscene_wait(0.5)
6
        break
7
    case 1:
8
        var flower = instance_create_depth(320, (box.bbox_bottom - 4), (obj_heart_battle_fighting_parent.depth - 1), obj_guardener_flower)
9
        flower.image_xscale = 1
10
        flower.image_yscale = 1
11
        cutscene_advance()
12
        break
13
    case 2:
14
        cutscene_wait(1.8)
15
        break
16
    case 3:
17
        var arm = instance_create_depth((box.bbox_left - 5), (box.bbox_top + 40), (obj_heart_battle_fighting_parent.depth - 1), obj_battle_enemy_attack_guardener_arm)
18
        arm.launch_dir = "right"
19
        arm.image_angle = 90
20
        arm.arm_return = 5
21
        cutscene_advance()
22
        break
23
    case 4:
24
        cutscene_wait(0.4)
25
        break
26
    case 5:
27
        arm = instance_create_depth((box.bbox_left - 5), (box.bbox_top + 70), (obj_heart_battle_fighting_parent.depth - 1), obj_battle_enemy_attack_guardener_arm)
28
        arm.launch_dir = "right"
29
        arm.image_angle = 90
30
        arm.arm_return = 5
31
        cutscene_advance()
32
        break
33
    case 6:
34
        cutscene_wait(0.4)
35
        break
36
    case 7:
37
        arm = instance_create_depth((box.bbox_left - 5), (box.bbox_top + 100), (obj_heart_battle_fighting_parent.depth - 1), obj_battle_enemy_attack_guardener_arm)
38
        arm.launch_dir = "right"
39
        arm.image_angle = 90
40
        arm.arm_return = 5
41
        cutscene_advance()
42
        break
43
    case 8:
44
        cutscene_wait(1)
45
        break
46
    case 9:
47
        obj_guardener_flower.sprite_index = spr_guardener_plant_disappear
48
        obj_guardener_flower.image_speed = 1
49
        cutscene_advance()
50
        break
51
    case 10:
52
        cutscene_wait(1.5)
53
        break
54
    case 11:
55
        instance_destroy()
56
        break
57
}