1 | if (timer == 5) |
2 | { |
3 | heartposx[index] = obj_heart.x + 8; |
4 | heartposy[index] = obj_heart.y + 8; |
5 | index++; |
6 | if (index > totalpoints) |
7 | totalpoints++; |
8 | if (index >= 12) |
9 | index = 0; |
10 | if (totalpoints == 12) |
11 | followindex += 1; |
12 | timer = 0; |
13 | } |
14 | for (i = 0; i < totalpoints; i++) |
15 | { |
16 | var alpha; |
17 | if (i < followindex) |
18 | alpha = ((i + followindex) / 12) + (timer / 60); |
19 | else |
20 | alpha = ((i - followindex) / 12) + (timer / 60); |
21 | draw_sprite_ext(spr_maus_player_trail, 0, heartposx[i], heartposy[i], 1, 1, 0, c_white, alpha); |
22 | } |