1 | var j = 2 |
2 | for (i = ds_list_size(x_list) - 1; i >= 0; i -= 1) |
3 | { |
4 | var x0 = ds_list_find_value(x_list, i) |
5 | var y0 = ds_list_find_value(y_list, i) |
6 | var angle0 = ds_list_find_value(angle_list, i) |
7 | var image_alpha_trail = 1 / j |
8 | draw_sprite_ext(trail_sprite, 0, x0, y0, 1, 1, angle0, c_white, (image_alpha_trail * image_alpha)) |
9 | j += 1 |
10 | } |
11 | draw_sprite_ext(sprite_index, image_index, x, y, 1, 1, image_angle, c_white, image_alpha) |