1 |
if (big == 1) |
2 |
{ |
3 |
damage = 4; |
4 |
image_alpha += (0.1 * f); |
5 |
if (image_xscale < 1) |
6 |
image_xscale += (0.1 * f); |
7 |
if (image_yscale > 1) |
8 |
image_yscale -= (0.1 * f); |
9 |
} |
10 |
if (x >= (camerax() + 700)) |
11 |
instance_destroy(); |
12 |
if (y >= (cameray() + 520)) |
13 |
instance_destroy(); |
14 |
if (y <= (cameray() - 40)) |
15 |
instance_destroy(); |
16 |
if (x >= (camerax() + 500) && x < (camerax() + 530) && instance_exists(obj_sneo_faceattack) && obj_sneo_faceattack.init == 1) |
17 |
{ |
18 |
event_user(0); |
19 |
snd_play(snd_bell); |
20 |
} |
21 |
if (sucked == 1 && instance_exists(obj_sneo_final_forme)) |
22 |
{ |
23 |
if (y < (obj_sneo_final_forme.y + 146)) |
24 |
y++; |
25 |
if (y > (obj_sneo_final_forme.y + 146)) |
26 |
y--; |
27 |
direction = point_direction(x, y, obj_sneo_final_forme.x + 122, obj_sneo_final_forme.y + 146); |
28 |
gravity_direction = point_direction(x, y, obj_sneo_final_forme.x + 122, obj_sneo_final_forme.y + 146); |
29 |
} |
30 |
if (trail == 1) |
31 |
{ |
32 |
trail_timer++; |
33 |
if (trail_timer == 2) |
34 |
{ |
35 |
trail_timer = 0; |
36 |
after = instance_create(x - 10, y, obj_yheart_shot_afterimage); |
37 |
after.image_speed = 0; |
38 |
after.sprite_index = spr_yheart_bigshot_trail; |
39 |
after.image_xscale = 0.8; |
40 |
after.image_yscale = 0.5; |
41 |
after.image_index = image_index; |
42 |
after.speed = 0; |
43 |
after.friction = 0; |
44 |
after.depth = depth; |
45 |
after.direction = 180; |
46 |
} |
47 |
} |