1 |
image_alpha += 0.05; |
2 |
image_angle -= rotspeed; |
3 |
if (rotspeed > 0) |
4 |
rotspeed -= 1; |
5 |
if (rotspeed == 0 && speed < 1) |
6 |
{ |
7 |
snd_play(snd_arrow); |
8 |
move_towards_point(obj_heart.x + 10, obj_heart.y + 10, 3); |
9 |
friction = -0.3; |
10 |
image_angle = direction; |
11 |
} |
12 |
xoff = lengthdir_x(25, direction); |
13 |
yoff = lengthdir_y(25, direction); |
14 |
if (rotspeed == 0 && deactivate == 0) |
15 |
{ |
16 |
if (collision_line(x - (xoff / 2), y - (yoff / 2), x + xoff, y + yoff, obj_heart, true, false)) |
17 |
scr_damagestandard_x(); |
18 |
} |
19 |
if (deactivate == 1) |
20 |
{ |
21 |
image_alpha -= 0.1; |
22 |
if (image_alpha <= 0) |
23 |
instance_destroy(); |
24 |
} |