Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_martlet_ff_2_final_checker_Other_10

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
feather_angle_direction = choose(-1, 1)
4
for (i = 0; i < feather_create_max; i++)
5
{
6
    id_counter = i
7
    feather_create_angle = feather_angle_master + 360 / feather_create_max * i
8
    var fcreate_x = x_center + feather_angle_radius * cos(degtorad(feather_create_angle))
9
    var fcreate_y = y_center - feather_angle_radius * sin(degtorad(feather_create_angle))
10
    instance_create_depth(fcreate_x, fcreate_y, -100, obj_battle_enemy_attack_martlet_ff_2_final_feather)
11
    id_feather[feather_count][i] = global.id_store
12
    with (id_feather[feather_count][i])
13
    {
14
        sprite_index = obj_battle_enemy_attack_martlet_ff_2_final_checker.feather_sprite
15
        image_index = 0
16
        image_speed = 0
17
        image_alpha = 0
18
        image_angle = obj_battle_enemy_attack_martlet_ff_2_final_checker.feather_create_angle + 180
19
        trail_sprite = sprite_index
20
        id_counter = obj_battle_enemy_attack_martlet_ff_2_final_checker.id_counter
21
        feather_count = obj_battle_enemy_attack_martlet_ff_2_final_checker.feather_count
22
        feather_angle = obj_battle_enemy_attack_martlet_ff_2_final_checker.feather_create_angle
23
    }
24
}
25
switch feather_sprite
26
{
27
    case spr_battle_enemy_attack_martlet_feather_1:
28
    case 2274:
29
    case 2275:
30
        audio_play_sound(snd_mart_spiral_attack_2, 20, 0)
31
        break
32
    case 2276:
33
    case 2278:
34
        audio_play_sound(snd_mart_spiral_attack_1, 20, 0)
35
        break
36
    default:
37
        audio_play_sound(snd_mart_spiral_attack_1, 20, 0)
38
}
39
40
feather_angle_master += feather_angle_speed
41
if (feather_angle_master >= 360)
42
    feather_angle_master -= 360
43
else if (feather_angle_master < 0)
44
    feather_angle_master += 360
45
feather_angle_total += abs(feather_angle_speed)
46
feather_count += 1
47
if (feather_angle_total < feather_angle_total_max)
48
    alarm[0] = 30
alarm[0]

if live_call() return global.live_result; event_user(0)