Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_fmartlet_spawner_feathers_scratch_2_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var battle_box = obj_dialogue_box_battle_transformation_any
4
switch attack_tick
5
{
6
    case 30:
7
        var scratch_instance = instance_create_depth(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, -100, obj_martlet_attack_talon)
8
        scratch_instance.attack_delay = 10
9
        break
10
    case 45:
11
        scratch_instance = instance_create_depth(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, -100, obj_martlet_attack_talon)
12
        scratch_instance.image_xscale = -1
13
        scratch_instance.attack_delay = 15
14
        break
15
    case 65:
16
        scratch_instance = instance_create_depth(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, -100, obj_martlet_attack_talon)
17
        scratch_instance.image_yscale = -1
18
        scratch_instance.attack_delay = 20
19
        break
20
    case 35:
21
        var attack_instance = instance_create_depth(battle_box.x, (battle_box.bbox_top - 20), -100, obj_martlet_attack_splitting_feather)
22
        attack_instance.x_target_override = battle_box.x
23
        attack_instance.y_target_override = battle_box.y
24
        break
25
    case 80:
26
        attack_instance = instance_create_depth((battle_box.bbox_left - 20), battle_box.y, -100, obj_martlet_attack_splitting_feather)
27
        attack_instance.x_target_override = battle_box.bbox_right - 20
28
        attack_instance.y_target_override = battle_box.y
29
        break
30
    case 98:
31
        attack_instance = instance_create_depth(battle_box.x, (battle_box.bbox_top - 20), -100, obj_martlet_attack_splitting_feather)
32
        attack_instance.x_target_override = battle_box.bbox_left + 20
33
        attack_instance.y_target_override = battle_box.y
34
        break
35
    case 108:
36
        attack_instance = instance_create_depth(battle_box.x, (battle_box.bbox_bottom + 20), -100, obj_martlet_attack_splitting_feather)
37
        attack_instance.x_target_override = battle_box.bbox_right - 20
38
        attack_instance.y_target_override = battle_box.y
39
        break
40
    case 150:
41
        instance_destroy()
42
        break
43
}
44
45
attack_tick += 1