|
1
|
timer++;
|
|
2
|
if (con == 1)
|
|
3
|
{
|
|
4
|
t = (t + increment) % 360;
|
|
5
|
shift = amplitude * dsin(t);
|
|
6
|
y = yy + shift;
|
|
7
|
sprite_index = spr_berdly_plug_target;
|
|
8
|
x = (xstart - (((y - cameray()) + 0.1) / 3.375)) + 18 + (sprite_width / 2);
|
|
9
|
}
|
|
10
|
if (con == 5)
|
|
11
|
{
|
|
12
|
slash = instance_create(x, y, obj_slashEffect);
|
|
13
|
slash.image_angle = image_angle + 45;
|
|
14
|
scr_afterimage_cutscr_afterimage_cut
function 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;
} ();
|
|
15
|
instance_destroy();
|
|
16
|
}
|