1 | if (deactivate == 0) |
2 | { |
3 | if (image_alpha < 1) |
4 | image_alpha += 0.2; |
5 | } |
6 | if (deactivate == 1) |
7 | { |
8 | image_alpha -= 0.2; |
9 | if (image_alpha < 0.3) |
10 | instance_destroy(); |
11 | } |
12 | xoff = lengthdir_x(25, image_angle); |
13 | yoff = lengthdir_y(25, image_angle); |
14 | if (image_alpha >= 0.8) |
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 (global.turntimer < 1) |
20 | instance_destroy(); |