1 |
if (can_move == true) |
2 |
{ |
3 |
var j = 2 |
4 |
for (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 in_box_trail = ds_list_find_value(in_box_list, i) |
9 |
var image_alpha_trail = 1 / j |
10 |
if (in_box_trail == true) |
11 |
{ |
12 |
var target = obj_dialogue_box_battle_transformation_any |
13 |
draw_sprite_clip_ext(trail_sprite, 0, x0, y0, 1, 1, c_white, image_alpha_trail, (target.bbox_left + 5), (target.bbox_top + 5), (target.sprite_width - 10), (target.sprite_height - 10)) |
14 |
} |
15 |
else |
16 |
draw_sprite_ext(trail_sprite, 0, x0, y0, 1, 1, 0, c_white, image_alpha_trail) |
17 |
j += 1 |
18 |
} |
19 |
} |
20 |
if (in_box == true) |
21 |
script_execute(gml_Script_scr_battle_draw_inside_battle_box_ext) |
22 |
else |
23 |
draw_sprite_ext(sprite_index, image_index, x, y, 1, 1, 0, c_white, image_alpha) |