1 |
if live_call() |
2 |
return global.live_result; |
3 |
var j = 2 |
4 |
for (var i = ds_list_size(x_list) - 1; i >= 0; i -= 1) |
5 |
{ |
6 |
var x0 = ds_list_find_value(x_list, i) |
7 |
var y0 = ds_list_find_value(y_list, i) |
8 |
var image_alpha_trail = 1 / j |
9 |
draw_sprite_ext(base_sprite, 0, x0, y0, image_xscale, image_yscale, image_angle, c_white, (image_alpha_trail * image_alpha)) |
10 |
j += 1 |
11 |
} |
12 |
if (is_charging && (!is_charged)) |
13 |
{ |
14 |
draw_set_circle_precision(8) |
15 |
var dir_offset = 180 * charge_percentage |
16 |
var distance = 25 * charge_percentage |
17 |
var circle_alpha = 0.8 - charge_percentage |
18 |
var custom_col = make_color_rgb(255, 255, (255 - 255 * charge_percentage)) |
19 |
draw_set_color(custom_col) |
20 |
draw_set_alpha(circle_alpha) |
21 |
for (i = 0; i < 360; i += 90) |
22 |
{ |
23 |
var xx = x + (lengthdir_x(distance, (i + dir_offset))) |
24 |
var yy = y + (lengthdir_y(distance, (i + dir_offset))) |
25 |
draw_circle(xx, yy, 6, false) |
26 |
} |
27 |
draw_set_alpha(1) |
28 |
draw_set_circle_precision(24) |
29 |
} |
30 |
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, c_white, image_alpha) |
31 |
shader_set(sh_flash) |
32 |
draw_sprite_ext(base_sprite, image_index, x, y, image_xscale, image_yscale, image_angle, c_white, dash_overlay) |
33 |
shader_reset() |
34 |
if (draw_sprite_hurt == true) |
35 |
draw_sprite_ext(sprite_index, 1, x, y, image_xscale, image_yscale, image_angle, c_white, image_alpha) |