Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_martlet_genocide_feather_ext_checker_Create_0

(view raw script w/o annotations or w/e)
1
instance_create(x, y, obj_battle_enemy_attack_martlet_genocide_feather_ext_explosion)
2
alarm[0] = 3
alarm[0]

var random_number = irandom_range(4, 5) switch random_number { case 4: feather_sprite = spr_battle_enemy_attack_martlet_feather_4 break case 5: feather_sprite = spr_battle_enemy_attack_martlet_feather_5 break default: feather_sprite = spr_battle_enemy_attack_martlet_feather_1 } for (i = 0; i < fcreate_count; i += 1) { var fcreate_x = x + feather_radius * cos(degtorad(fcreate_angle_diff)) var fcreate_y = y - feather_radius * sin(degtorad(fcreate_angle_diff)) global.id_store = id instance_create(fcreate_x, fcreate_y, obj_battle_enemy_attack_martlet_genocide_feather_ext_feather) id_feather[i] = global.id_store with (id_feather[i]) { sprite_index = id_checker.feather_sprite image_index = 0 image_speed = 0 image_angle = id_checker.fcreate_angle_diff trail_sprite = sprite_index } fcreate_angle_diff -= fcreate_decrease if (fcreate_angle_diff < 0) fcreate_angle_diff += 360 } can_move = true switch feather_sprite { case spr_battle_enemy_attack_martlet_feather_1: case 2274: case 2275: audio_play_sound(snd_mart_spiral_attack_2, 20, 0) break case 2276: case 2278: audio_play_sound(snd_mart_spiral_attack_1, 20, 0) break default: audio_play_sound(snd_mart_spiral_attack_1, 20, 0) }
3
feather_radius = 15
4
feather_speed = 14
5
feather_alpha = 1
6
can_move = false
7
can_fade_out = false
8
fcreate_count = 4
9
fcreate_decrease = 360 / fcreate_count
10
fcreate_angle_diff = 0