Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_martlet_attack_splitting_feather_Alarm_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
x_destination = x_target_override
4
y_destination = y_target_override
5
angle_destination = point_direction(x, y, x_destination, y_destination)
6
if (angle_difference(image_angle, angle_destination) > 0)
7
    spin_direction = 1
8
else
9
    spin_direction = -1
10
global.id_store = id
11
with (instance_create_depth(x_destination, y_destination, -100, obj_martlet_attack_splitting_feather_target_axis))
12
    geno_target_angle = other.explosion_angle
13
id_target = global.id_store
14
state = 1
15
switch sprite_index
16
{
17
    case spr_battle_enemy_attack_martlet_feather_1:
18
        audio_play_sound(snd_mart_feather_atk3, 20, 0)
19
        break
20
    case 2274:
21
    case 2275:
22
        audio_play_sound(snd_mart_feather_atk1, 20, 0)
23
        break
24
    case 2276:
25
    case 2278:
26
        audio_play_sound(snd_mart_feather_atk2, 20, 0)
27
        break
28
    default:
29
        audio_play_sound(snd_mart_feather_atk1, 20, 0)
30
}