Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_martlet_feather_circle_feather_Other_12

(view raw script w/o annotations or w/e)
1
trail_cc_current = trail_cc_start;
2
target_speed = spin_angle_speed;
3
x_destination = obj_heart_battle_fighting_parent.x;
4
y_destination = obj_heart_battle_fighting_parent.y;
5
angle_destination = point_direction(x, y, obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y);
6
target_direction = 1;
7
obj_battle_enemy_attack_martlet_feather_circle_checker.x_store = x_destination;
8
obj_battle_enemy_attack_martlet_feather_circle_checker.y_store = y_destination;
9
obj_battle_enemy_attack_martlet_feather_circle_checker.angle_store = angle_destination;
10
global.id_store = id;
11
instance_create(x_destination, y_destination, obj_battle_enemy_attack_martlet_feather_circle_target_1_axis);
12
id_target = global.id_store;
13
state = 2;
14
switch (sprite_index)
15
{
16
    case spr_battle_enemy_attack_martlet_feather_1:
17
        audio_play_sound(snd_mart_feather_atk3, 20, 0);
18
        break;
19
    case spr_battle_enemy_attack_martlet_feather_2:
20
    case spr_battle_enemy_attack_martlet_feather_3:
21
        audio_play_sound(snd_mart_feather_atk1, 20, 0);
22
        break;
23
    case spr_battle_enemy_attack_martlet_feather_4:
24
    case spr_battle_enemy_attack_martlet_feather_5:
25
        audio_play_sound(snd_mart_feather_atk2, 20, 0);
26
        break;
27
    default:
28
        audio_play_sound(snd_mart_feather_atk1, 20, 0);
29
}