1 |
if (sprite_index == spr_sneo_bullet_box) |
2 |
exit; |
3 |
if (destroyable == 1) |
4 |
{ |
5 |
if (hitshot.big == 0) |
6 |
{ |
7 |
with (hitshot) |
8 |
event_user(0); |
9 |
} |
10 |
if (red == 1) |
11 |
{ |
12 |
with (obj_sneo_wallbullet_new) |
13 |
{ |
14 |
if (wallnumber == other.wallnumber) |
15 |
{ |
16 |
snd_play_pitch(snd_bomb, 1.1 + random(0.2)); |
17 |
var _cut = scr_afterimage_cutscr_afterimage_cutfunction scr_afterimage_cut()
{
afterimage = instance_create(x, y, obj_afterimage_cut);
afterimage.sprite_index = sprite_index;
afterimage.image_index = image_index;
afterimage.image_blend = image_blend;
afterimage.image_speed = 0;
afterimage.depth = depth;
afterimage.image_xscale = image_xscale;
afterimage.image_yscale = image_yscale;
afterimage.image_angle = image_angle;
with (afterimage)
event_user(0);
return afterimage;
} (); |
18 |
_cut.flash = true; |
19 |
instance_destroy(); |
20 |
} |
21 |
} |
22 |
with (obj_sneo_rotatingwall_pipis) |
23 |
{ |
24 |
if (wallnumber == other.wallnumber) |
25 |
{ |
26 |
event_user(0); |
27 |
instance_destroy(); |
28 |
} |
29 |
} |
30 |
} |
31 |
anim = instance_create(x, y, obj_yshot_anim); |
32 |
anim.image_xscale = image_xscale; |
33 |
anim.image_yscale = image_yscale; |
34 |
with (anim) |
35 |
sprite_index = spr_yheart_shot_hit3; |
36 |
} |
37 |
else |
38 |
{ |
39 |
with (hitshot) |
40 |
event_user(0); |
41 |
snd_play(snd_bell); |
42 |
} |