1 | if live_call() |
2 | return global.live_result; |
3 | var can_trail = false |
4 | trail_cc_current += 1 |
5 | if (trail_cc_current >= trail_cc_max) |
6 | { |
7 | can_trail = true |
8 | trail_cc_current = 0 |
9 | } |
10 | if (can_trail == true) |
11 | { |
12 | ds_list_add(x_list, x) |
13 | ds_list_add(y_list, y) |
14 | ds_list_add(angle_list, image_angle) |
15 | while (ds_list_size(x_list) > max_points_trail) |
16 | { |
17 | ds_list_delete(x_list, 0) |
18 | ds_list_delete(y_list, 0) |
19 | ds_list_delete(angle_list, 0) |
20 | } |
21 | } |