Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_fmartlet_spawner_wings_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
switch attack_tick
4
{
5
    case 30:
6
        self.martlet_wing_spawn(0)
7
        break
8
    case 60:
9
        self.martlet_wing_spawn(1)
10
        break
11
    case 90:
12
        self.martlet_wing_spawn(0)
13
        break
14
    case 120:
15
        self.martlet_wing_spawn(1)
16
        break
17
    case 140:
18
        self.martlet_wing_spawn(1)
19
        break
20
    case 180:
21
        self.martlet_wing_spawn(0)
22
        break
23
    case 200:
24
        self.martlet_wing_spawn(1)
25
        break
26
    case 300:
27
        instance_destroy()
28
        break
29
}
30
31
attack_tick += 1
32
function martlet_wing_spawn_gml_Object_obj_fmartlet_spawner_wings_Step_0(argument0) //gml_Script_martlet_wing_spawn_gml_Object_obj_fmartlet_spawner_wings_Step_0
33
{
34
    var battle_box = obj_dialogue_box_battle_transformation_any
35
    var xx = 0
36
    var yy = 0
37
    var xscale = 1
38
    var yscale = 1
39
    var angle = 0
40
    switch argument0
41
    {
42
        case 0:
43
            xx = battle_box.bbox_left + 4
44
            yy = battle_box.bbox_top + 30
45
            break
46
        case 1:
47
            xx = battle_box.bbox_right - 4
48
            yy = battle_box.bbox_top + 30
49
            xscale = -1
50
            break
51
    }
52
53
    var wing = instance_create_depth(xx, yy, -50, obj_fmartlet_wings)
54
    with (wing)
55
    {
56
        image_xscale = xscale
57
        image_yscale = yscale
58
        image_angle = angle
59
    }
60
}