|
1
|
image_angle = direction;
|
|
2
|
depth = obj_growtangle.depth - 1;
|
|
3
|
var _x = obj_shutta_photo_controller.secrettargetx;
|
|
4
|
var _y = obj_shutta_photo_controller.secrettargety;
|
|
5
|
timer++;
|
|
6
|
x = lerp(xstart, targetx, timer / timermax);
|
|
7
|
y = lerp(ystart, targety, timer / timermax);
|
|
8
|
if (timer == timermax)
|
|
9
|
{
|
|
10
|
var dir = 180;
|
|
11
|
var dir2 = 0;
|
|
12
|
repeat (6)
|
|
13
|
{
|
|
14
|
dir2 = -15 + irandom(30);
|
|
15
|
var dox = x + lengthdir_x(5, dir + dir2);
|
|
16
|
var doy = y + lengthdir_y(5, dir + dir2);
|
|
17
|
bullet = scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (dox, doy, obj_shutta_reticle_bullet2, dir + dir2, 1, spr_smallbullet, false, id, depth);
|
|
18
|
bullet.image_angle = dir + dir2;
|
|
19
|
bullet.friction = -0.2;
|
|
20
|
bullet.depth = obj_growtangle.depth - 2;
|
|
21
|
bullet.image_xscale = 0.5;
|
|
22
|
bullet.image_yscale = 0.5;
|
|
23
|
dir += 60;
|
|
24
|
}
|
|
25
|
repeat (6)
|
|
26
|
{
|
|
27
|
dir2 = (point_direction(x, y, _x, _y) - 15) + irandom(30);
|
|
28
|
var dox = x + lengthdir_x(5, dir2);
|
|
29
|
var doy = y + lengthdir_y(5, dir2);
|
|
30
|
bullet = scr_fire_bulletscr_fire_bullet
function scr_fire_bullet(arg0, arg1, arg2, arg3, arg4, arg5 = -4, arg6 = 0, arg7 = false, arg8 = 87135)
{
var bullet;
if (arg8 != 87135)
bullet = instance_create_depth(arg0, arg1, arg8, arg2);
else
bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
if (arg5 != -4)
sprite_index = arg5;
updateimageangle = arg6;
if (arg6)
image_angle = arg3;
if (arg7)
{
with (other)
scr_bullet_inherit(other.id);
}
}
return bullet;
}
function scr_fire_bullet_colorize(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7 = 0)
{
var bullet = instance_create(arg0, arg1, arg2);
with (bullet)
{
direction = arg3;
speed = arg4;
sprite_index = arg5;
image_blend = arg6;
updateimageangle = arg7;
if (arg7)
image_angle = arg3;
}
return bullet;
} (dox, doy, obj_shutta_reticle_bullet2, dir2, 1, spr_smallbullet, false, id, depth);
|
|
31
|
bullet.friction = -0.2;
|
|
32
|
bullet.image_angle = dir2;
|
|
33
|
bullet.depth = obj_growtangle.depth - 2;
|
|
34
|
bullet.image_xscale = 0.5;
|
|
35
|
bullet.image_yscale = 0.5;
|
|
36
|
dir += 36;
|
|
37
|
}
|
|
38
|
instance_destroy();
|
|
39
|
}
|