1 |
if (dont == 0) |
2 |
{ |
3 |
if (active == 0) |
4 |
{ |
5 |
futuredir = point_direction(x, y, (obj_heart_ch1.x + 8), (obj_heart_ch1.y + 8)) |
6 |
draw_sprite_ext(spr_diamondbullet_form_ch1, 0, x, y, (3 - image_alpha * 2), (3 - image_alpha * 2), futuredir, c_white, (1 - image_alpha)) |
7 |
if (image_alpha < 1) |
8 |
image_alpha += 0.08 |
9 |
else |
10 |
{ |
11 |
move_towards_point((obj_heart_ch1.x + 8), (obj_heart_ch1.y + 8), 4) |
12 |
futuredir = direction |
13 |
active = 1 |
14 |
friction = -0.1 |
15 |
} |
16 |
} |
17 |
draw_sprite_ext(sprite_index, 0, x, y, (2 - image_alpha), (2 - image_alpha), futuredir, c_white, image_alpha) |
18 |
if (x < ((__view_get((0 << 0), 0)) - 40)) |
19 |
instance_destroy() |
20 |
if (x > ((__view_get((0 << 0), 0)) + 680)) |
21 |
instance_destroy() |
22 |
if (y < ((__view_get((1 << 0), 0)) - 40)) |
23 |
instance_destroy() |
24 |
if (y > ((__view_get((1 << 0), 0)) + 520)) |
25 |
instance_destroy() |
26 |
} |
27 |
dont = 0 |