Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_martlet_ff_2_checker_Other_10

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

event_user(0)