Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_martlet_attack_splitting_feather_ext_checker_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var heart = obj_heart_battle_fighting_parent
4
instance_create(x, y, obj_battle_enemy_attack_martlet_genocide_feather_ext_explosion)
5
alarm[0] = 3
alarm[0]

if live_call() return global.live_result; 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 (var 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_depth(fcreate_x, fcreate_y, -100, obj_battle_enemy_attack_martlet_genocide_feather_ext_feather_final) id_feather[i] = global.id_store with (id_feather[i]) { sprite_index = other.feather_sprite image_index = 0 image_speed = 0 if (other.feather_targetted == true) image_angle = other.fcreate_angle - i * other.fcreate_decrease else { var image_angle_inc = 360 / other.fcreate_count image_angle = i * image_angle_inc } trail_sprite = sprite_index } } 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) }
6
feather_radius = 15
7
feather_speed = 14
8
feather_alpha = 1
9
can_move = false
10
can_fade_out = false
11
fcreate_count = 5
12
fcreate_spread = 60
13
fcreate_decrease = fcreate_spread / fcreate_count
14
fcreate_angle = (point_direction(x, y, heart.x, heart.y)) + fcreate_spread * 0.5 - fcreate_decrease * 0.5
15
feather_targetted = true