Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_fmartlet_spawner_splitting_feathers_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 20:
7
        var attack_instance = instance_create_depth((battle_box.bbox_left + 40), 200, -100, obj_martlet_attack_splitting_feather)
8
        attack_instance.x_target_override = battle_box.bbox_right + 20
9
        attack_instance.y_target_override = battle_box.y
10
        break
11
    case 40:
12
        attack_instance = instance_create_depth((battle_box.bbox_right - 40), 440, -100, obj_martlet_attack_splitting_feather)
13
        attack_instance.x_target_override = battle_box.bbox_left - 20
14
        attack_instance.y_target_override = battle_box.y
15
        break
16
    case 60:
17
        attack_instance = instance_create_depth((battle_box.bbox_left - 40), battle_box.y, -100, obj_martlet_attack_splitting_feather)
18
        attack_instance.feather_create_count = 11
19
        attack_instance.feather_targetted = false
20
        break
21
    case 90:
22
        attack_instance = instance_create_depth(battle_box.x, (battle_box.bbox_top - 40), -100, obj_martlet_attack_splitting_feather)
23
        break
24
    case 100:
25
        attack_instance = instance_create_depth(battle_box.x, (battle_box.bbox_bottom + 40), -100, obj_martlet_attack_splitting_feather)
26
        break
27
    case 120:
28
        attack_instance = instance_create_depth((battle_box.bbox_right + 40), battle_box.y, -100, obj_martlet_attack_splitting_feather)
29
        attack_instance.feather_create_count = 11
30
        attack_instance.feather_targetted = false
31
        attack_instance.x_target_override = battle_box.x
32
        attack_instance.y_target_override = battle_box.bbox_top
33
        break
34
    case 150:
35
        attack_instance = instance_create_depth((battle_box.bbox_left - 40), battle_box.y, -100, obj_martlet_attack_splitting_feather)
36
        attack_instance.x_target_override = battle_box.bbox_right + 40
37
        attack_instance.y_target_override = battle_box.y
38
        attack_instance = instance_create_depth(battle_box.x, (battle_box.bbox_bottom + 40), -100, obj_martlet_attack_splitting_feather)
39
        attack_instance.x_target_override = battle_box.x
40
        attack_instance.y_target_override = battle_box.bbox_top - 40
41
        break
42
    case 240:
43
        instance_destroy()
44
        break
45
}
46
47
attack_tick += 1