|
1
|
visible = false;
|
|
2
|
with (obj_shootout_controller)
|
|
3
|
krishit = true;
|
|
4
|
var gunx = x;
|
|
5
|
var guny = y;
|
|
6
|
var shot = instance_create_depth(gunx, guny, -9999, obj_shootout_vfx_mockup_shot);
|
|
7
|
shot.enemy = 1;
|
|
8
|
shot.targetx = camerax() + 120;
|
|
9
|
shot.targety = cameray() + 310;
|
|
10
|
shot.sprite_index = spr_smallbullet;
|
|
11
|
var impactfx = instance_create(gunx, guny, obj_animation);
|
|
12
|
impactfx.sprite_index = spr_attack_slap2;
|
|
13
|
impactfx.image_speed = 2;
|
|
14
|
impactfx.image_xscale = 1;
|
|
15
|
impactfx.image_yscale = 1;
|
|
16
|
impactfx.image_blend = c_white;
|
|
17
|
impactfx.depth = depth - 10;
|
|
18
|
impactfx = instance_create(gunx, guny, obj_animation);
|
|
19
|
impactfx.sprite_index = spr_attack_slap2;
|
|
20
|
impactfx.image_speed = 1;
|
|
21
|
impactfx.image_xscale = 1;
|
|
22
|
impactfx.image_yscale = 1;
|
|
23
|
impactfx.image_blend = c_red;
|
|
24
|
impactfx.depth = depth - 10;
|
|
25
|
for (var i = 0; i < 8; i++)
|
|
26
|
{
|
|
27
|
var smokefx = scr_markerscr_marker
function scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (gunx, guny, spr_slidedust);
|
|
28
|
smokefx.hspeed = random_range(-2, 8);
|
|
29
|
smokefx.gravity_direction = 180;
|
|
30
|
smokefx.gravity = 2 - random(0.4);
|
|
31
|
smokefx.image_speed = 0.2;
|
|
32
|
smokefx.image_xscale = 2 + random(1);
|
|
33
|
smokefx.image_yscale = 2 + random(1);
|
|
34
|
smokefx.vspeed = random_range(-4, 0);
|
|
35
|
scr_lerp_var_instance(smokefx, "image_alpha", 0.6, 0, 12);
|
|
36
|
scr_doomscr_doom
function scr_doom(arg0, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
}
} (smokefx, 12);
|
|
37
|
}
|
|
38
|
instance_destroy();
|