Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_castle_throne_room_controller_Draw_73

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (scene == 34 && (!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 = obj_player_npc.x + (lengthdir_x(distance, (i + dir_offset)))
15
        var yy = obj_player_npc.y - 25 + (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
}