Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_martlet_feather_circle_final_feather_Other_12

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
trail_cc_current = trail_cc_start;
4
target_speed = spin_angle_speed;
5
x_destination = obj_heart_battle_fighting_parent.x;
6
y_destination = obj_heart_battle_fighting_parent.y;
7
angle_destination = point_direction(x, y, obj_heart_battle_fighting_parent.x, obj_heart_battle_fighting_parent.y);
8
target_direction = 1;
9
spawner_id.x_store = x_destination;
10
spawner_id.y_store = y_destination;
11
spawner_id.angle_store = angle_destination;
12
global.id_store = id;
13
var target = instance_create_depth(x_destination, y_destination, -100, obj_battle_enemy_attack_martlet_feather_circle_final_target_1_axis);
14
target.image_angle = angle_destination;
15
id_target = global.id_store;
16
state = 2;
17
var sound;
18
switch (sprite_index)
19
{
20
    case spr_battle_enemy_attack_martlet_feather_1:
21
        sound = audio_play_sound(snd_mart_feather_atk3, 20, 0);
22
        break;
23
    case spr_battle_enemy_attack_martlet_feather_2:
24
    case spr_battle_enemy_attack_martlet_feather_3:
25
        sound = audio_play_sound(snd_mart_feather_atk1, 20, 0);
26
        break;
27
    case spr_battle_enemy_attack_martlet_feather_4:
28
    case spr_battle_enemy_attack_martlet_feather_5:
29
        sound = audio_play_sound(snd_mart_feather_atk2, 20, 0);
30
        break;
31
    default:
32
        sound = audio_play_sound(snd_mart_feather_atk1, 20, 0);
33
}
34
audio_sound_gain(sound, 0.2, 0);