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
switch sprite_index
18
{
19
    case spr_battle_enemy_attack_martlet_feather_1:
20
        var sound = audio_play_sound(snd_mart_feather_atk3, 20, 0)
21
        break
22
    case 2274:
23
    case 2275:
24
        sound = audio_play_sound(snd_mart_feather_atk1, 20, 0)
25
        break
26
    case 2276:
27
    case 2278:
28
        sound = audio_play_sound(snd_mart_feather_atk2, 20, 0)
29
        break
30
    default:
31
        sound = audio_play_sound(snd_mart_feather_atk1, 20, 0)
32
}
33
34
audio_sound_gain(sound, 0.2, 0)