Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_fmartlet_g_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
        var attack_instance = instance_create_depth(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, -100, obj_martlet_attack_talon)
7
        attack_instance.attack_delay = 10
8
        break
9
    case 60:
10
        attack_instance = instance_create_depth(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, -100, obj_martlet_attack_talon)
11
        attack_instance.image_xscale = -1
12
        attack_instance.attack_delay = 10
13
        break
14
    case 100:
15
        attack_instance = instance_create_depth(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, -100, obj_martlet_attack_talon)
16
        attack_instance.attack_delay = 3
17
        break
18
    case 115:
19
        attack_instance = instance_create_depth(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, -100, obj_martlet_attack_talon)
20
        attack_instance.image_xscale = -1
21
        attack_instance.attack_delay = 3
22
        break
23
    case 130:
24
        attack_instance = instance_create_depth(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, -100, obj_martlet_attack_talon)
25
        attack_instance.attack_delay = 3
26
        break
27
    case 150:
28
        attack_instance = instance_create_depth(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, -100, obj_martlet_attack_talon)
29
        attack_instance.attack_delay = 40
30
        break
31
    case 180:
32
        attack_instance = instance_create_depth(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, -100, obj_martlet_attack_talon)
33
        attack_instance.image_xscale = -1
34
        attack_instance.attack_delay = 1
35
        break
36
    case 220:
37
        instance_destroy()
38
        break
39
}
40
41
attack_tick += 1