Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_martlet_feather_circle_final_feather_Draw_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (state >= 1)
4
{
5
    var j = 2
6
    for (i = ds_list_size(x_list) - 1; i >= 0; i -= 1)
7
    {
8
        var x0 = ds_list_find_value(x_list, i)
9
        var y0 = ds_list_find_value(y_list, i)
10
        var angle0 = ds_list_find_value(angle_list, i)
11
        var image_alpha_trail = 1 / j
12
        draw_sprite_ext(trail_sprite, 0, x0, y0, 1, 1, angle0, c_white, (image_alpha_trail * image_alpha))
13
        j += 1
14
    }
15
}
16
if (bullet_hit_draw_timer > 0)
17
    shader_set(sh_flash)
18
draw_sprite_ext(sprite_index, image_index, x, y, 1, 1, image_angle, c_yellow, image_alpha)
19
shader_reset()