1 |
if (con == 0) |
2 |
{ |
3 |
caster_loop(rotatenoise, 1, 1); |
4 |
con = 1; |
5 |
alarm[4] = 60; |
6 |
} |
7 |
if (con == 1) |
8 |
image_angle += 3; |
9 |
if (con == 2) |
10 |
{ |
11 |
caster_stop(rotatenoise); |
12 |
con = 3; |
13 |
alarm[4] = 30; |
14 |
} |
15 |
if (con == 4) |
16 |
{ |
17 |
caster_play(createnoise, 1, 1); |
18 |
instance_create(x, y, obj_growheart); |
19 |
sprite_index = spr_heartyellow_center; |
20 |
con = 5; |
21 |
alarm[4] = 60; |
22 |
} |
23 |
if (con == 6) |
24 |
{ |
25 |
obj_heart.movement = 1; |
26 |
obj_heart.x = x - 8; |
27 |
obj_heart.y = y - 8; |
28 |
obj_heart.shot = 1; |
29 |
obj_heart.sprite_index = spr_heartyellow_flip; |
30 |
obj_mettatonb_second.con = 15; |
31 |
instance_destroy(); |
32 |
} |
33 |
if (con > 4 && keyboard_check_pressed(ord("Z"))) |
34 |
{ |
35 |
if (instance_number(obj_heartshot) < 3) |
36 |
{ |
37 |
instance_create(x - 4, y + 2, obj_heartshot); |
38 |
snd_play(snd_heartshot); |
39 |
} |
40 |
} |