1 |
if (i_ex(target)) |
2 |
{ |
3 |
if (con == 0) |
4 |
{ |
5 |
target.image_index = 0; |
6 |
target.image_speed = 0; |
7 |
if (sprite >= 0) |
8 |
target.sprite_index = sprite; |
9 |
if (initframe >= 0) |
10 |
target.image_index = initframe; |
11 |
fake_image_index_max = endframe; |
12 |
if (endframe == 0) |
13 |
fake_image_index_max = target.image_number - 1 - target.image_index; |
14 |
if (endframe == -1) |
15 |
fake_image_index_max = target.image_number - target.image_index; |
16 |
con = 1; |
17 |
} |
18 |
if (con == 1) |
19 |
{ |
20 |
fake_image_index += fake_image_speed; |
21 |
target.image_index = fake_image_index; |
22 |
if (fake_image_index >= fake_image_index_max) |
23 |
instance_destroy(); |
24 |
} |
25 |
} |
26 |
else |
27 |
{ |
28 |
instance_destroy(); |
29 |
} |