1 | if (state == 0) |
2 | { |
3 | image_angle -= (speed * 2); |
4 | } |
5 | else if (state == 1) |
6 | { |
7 | image_alpha = 0; |
8 | image_angle = 0; |
9 | x = obj_growtangle.x + 400; |
10 | speed = 0; |
11 | direction = 0; |
12 | } |
13 | else if (state == 2) |
14 | { |
15 | image_angle += 60; |
16 | image_alpha = 1; |
17 | x -= 20; |
18 | var _minx = (obj_growtangle.x - (obj_growtangle.sprite_width / 2)) + 4; |
19 | if (x <= (_minx + 20)) |
20 | { |
21 | x = _minx; |
22 | obj_heart.x = x; |
23 | obj_heart.y = y; |
24 | state = 3; |
25 | global.inv = -1; |
26 | with (obj_spamton_neo_enemy) |
27 | event_user(2); |
28 | with (obj_dmgwriter) |
29 | { |
30 | depth = obj_sneo_fakeheart.depth - 2; |
31 | x = obj_heroparent.x; |
32 | y = obj_heroparent.y; |
33 | } |
34 | obj_heart.color = 1; |
35 | image_angle %= 360; |
36 | if (image_angle < 180) |
37 | image_angle += 360; |
38 | startangle = image_angle; |
39 | heartspeed = 8; |
40 | } |
41 | } |
42 | else if (state == 3) |
43 | { |
44 | obj_heart.x += heartspeed; |
45 | x = obj_heart.x; |
46 | heartspeed -= 1.5; |
47 | image_angle = scr_remapvalue |
48 | if (heartspeed <= 0) |
49 | { |
50 | obj_heart.color = 1; |
51 | obj_heart.image_alpha = 1; |
52 | instance_destroy(); |
53 | } |
54 | } |