Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_martlet_ff_1_checker_Other_10

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

event_user(0)