Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_martlet_ff_1_feather_Other_10

(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_battle_enemy_attack_martlet_ff_1_checker.x_center;
4
y_destination = obj_battle_enemy_attack_martlet_ff_1_checker.y_center;
5
angle_destination = point_direction(x, y, x_destination, y_destination);
6
target_direction = 1;
7
obj_battle_enemy_attack_martlet_ff_1_checker.x_store = x_destination;
8
obj_battle_enemy_attack_martlet_ff_1_checker.y_store = y_destination;
9
obj_battle_enemy_attack_martlet_ff_1_checker.angle_store = angle_destination;
10
state = 1;
11
switch (sprite_index)
12
{
13
    case spr_battle_enemy_attack_martlet_feather_1:
14
        audio_play_sound(snd_mart_feather_atk3, 20, 0);
15
        break;
16
    case spr_battle_enemy_attack_martlet_feather_2:
17
    case spr_battle_enemy_attack_martlet_feather_3:
18
        audio_play_sound(snd_mart_feather_atk1, 20, 0);
19
        break;
20
    case spr_battle_enemy_attack_martlet_feather_4:
21
    case spr_battle_enemy_attack_martlet_feather_5:
22
        audio_play_sound(snd_mart_feather_atk2, 20, 0);
23
        break;
24
    default:
25
        audio_play_sound(snd_mart_feather_atk1, 20, 0);
26
}
27
alarm[0] = 20;