Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_ceroba_transformation_soul_Draw_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (is_charging && (!is_charged))
4
{
5
    draw_set_circle_precision(8)
6
    var dir_offset = 180 * charge_percentage
7
    var distance = 25 * charge_percentage
8
    var circle_alpha = 0.8 - charge_percentage
9
    var custom_col = make_color_rgb(255, 255, (255 - 255 * charge_percentage))
10
    draw_set_color(custom_col)
11
    draw_set_alpha(circle_alpha)
12
    for (var i = 0; i < 360; i += 90)
13
    {
14
        var xx = x + (lengthdir_x(distance, (i + dir_offset)))
15
        var yy = y + (lengthdir_y(distance, (i + dir_offset)))
16
        draw_circle(xx, yy, 6, false)
17
    }
18
    draw_set_alpha(1)
19
    draw_set_circle_precision(24)
20
}
21
draw_sprite_ext(sprite_index, image_index, x, y, 1, 1, image_angle, c_white, image_alpha)
22
if (draw_hint == true)
23
{
24
    var battle_box = 3154
25
    var hint_scale = 1.5 + (sin(current_time / 100)) * 0.5
26
    draw_set_font(fnt_battle)
27
    draw_set_halign(fa_center)
28
    draw_set_valign(fa_middle)
29
    draw_set_alpha(hint_alpha)
30
    draw_set_color(c_white)
31
    draw_text_transformed((x - 40), y, global.action_key, hint_scale, hint_scale, 0)
32
    draw_set_halign(fa_left)
33
    draw_set_valign(fa_top)
34
    draw_set_alpha(1)
35
}