Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_dialogue_narrator_Draw_64

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
draw_set_font(fnt_main)
4
draw_set_color(c_yellow)
5
draw_set_halign(fa_left)
6
if (letter_array == -1)
7
    return;
8
for (var i = 1; i <= letter_current; i++)
9
{
10
    text_x_mod = random_range(-0.25, 0.25)
11
    text_y_mod = random_range(-0.25, 0.25)
12
    var text_x_final = text_x[i] + text_x_mod
13
    var text_y_final = text_y[i] + text_y_mod
14
    draw_set_alpha(draw_alpha * text_alpha[i])
15
    draw_set_color(c_black)
16
    draw_text_ext((text_x_final + 1), text_y_final, string_hash_to_newline(letter_array[i]), 20, -1)
17
    draw_text_ext((text_x_final + 1), (text_y_final + 1), string_hash_to_newline(letter_array[i]), 20, -1)
18
    draw_text_ext(text_x_final, (text_y_final + 1), string_hash_to_newline(letter_array[i]), 20, -1)
19
    draw_text_ext((text_x_final - 1), (text_y_final + 1), string_hash_to_newline(letter_array[i]), 20, -1)
20
    draw_text_ext((text_x_final - 1), text_y_final, string_hash_to_newline(letter_array[i]), 20, -1)
21
    draw_text_ext((text_x_final - 1), (text_y_final - 1), string_hash_to_newline(letter_array[i]), 20, -1)
22
    draw_text_ext(text_x_final, (text_y_final - 1), string_hash_to_newline(letter_array[i]), 20, -1)
23
    draw_text_ext((text_x_final + 1), (text_y_final - 1), string_hash_to_newline(letter_array[i]), 20, -1)
24
    draw_set_color(c_yellow)
25
    draw_text_ext(text_x_final, text_y_final, string_hash_to_newline(letter_array[i]), 20, -1)
26
}
27
draw_set_alpha(1)