Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_fmartlet_spawner_circular_scratch_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
        if (!instance_exists(obj_battle_enemy_attack_martlet_ff_2_final_checker))
8
        {
9
            var spawner = instance_create_depth(320, 320, -100, obj_battle_enemy_attack_martlet_ff_2_final_checker)
10
            spawner.feather_angle_total_max = 240
11
        }
12
        break
13
    case 60:
14
        var attack_instance = instance_create_depth(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, -100, obj_martlet_attack_talon)
15
        attack_instance.image_xscale = -1
16
        attack_instance.attack_delay = 5
17
        break
18
    case 90:
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.attack_delay = 5
21
        break
22
    case 105:
23
        attack_instance = instance_create_depth(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, -100, obj_martlet_attack_talon)
24
        attack_instance.image_xscale = -1
25
        attack_instance.image_yscale = -1
26
        attack_instance.attack_delay = 5
27
        break
28
    case 145:
29
        attack_instance = instance_create_depth(obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y, -100, obj_martlet_attack_talon)
30
        attack_instance.attack_delay = 5
31
        break
32
    case 160:
33
        attack_instance = instance_create_depth((battle_box.bbox_left - 40), battle_box.y, -100, obj_martlet_attack_splitting_feather)
34
        attack_instance.x_target_override = battle_box.x
35
        attack_instance.y_target_override = battle_box.bbox_top + 20
36
        break
37
    case 180:
38
        attack_instance = instance_create_depth((battle_box.bbox_right + 40), battle_box.y, -100, obj_martlet_attack_splitting_feather)
39
        attack_instance.x_target_override = battle_box.x
40
        attack_instance.y_target_override = battle_box.bbox_bottom - 20
41
        break
42
    case 230:
43
        instance_destroy()
44
        break
45
}
46
47
attack_tick += 1