|
1
|
function scr_makemarker_fromstructscr_makemarker_fromstruct
function scr_makemarker_fromstruct(arg0, arg1 = false)
{
var _marker;
if (arg1 == 2)
{
_marker = instance_create(arg0.x, arg0.y, obj_marker_fancy);
with (_marker)
{
sprite_index = arg0.sprite_index;
image_speed = 0;
}
}
else if (arg1)
{
_marker = scr_marker_fancy(arg0.x, arg0.y, arg0.sprite_index);
}
else
{
_marker = scr_marker(arg0.x, arg0.y, arg0.sprite_index);
}
with (_marker)
{
scr_spritematch(arg0);
scr_depth();
}
return _marker;
} (arg0, arg1 = false)
|
|
2
|
{
|
|
3
|
var _marker;
|
|
4
|
if (arg1 == 2)
|
|
5
|
{
|
|
6
|
_marker = instance_create(arg0.x, arg0.y, obj_marker_fancy);
|
|
7
|
with (_marker)
|
|
8
|
{
|
|
9
|
sprite_index = arg0.sprite_index;
|
|
10
|
image_speed = 0;
|
|
11
|
}
|
|
12
|
}
|
|
13
|
else if (arg1)
|
|
14
|
{
|
|
15
|
_marker = scr_marker_fancy(arg0.x, arg0.y, arg0.sprite_index);
|
|
16
|
}
|
|
17
|
else
|
|
18
|
{
|
|
19
|
_marker = 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;
} (arg0.x, arg0.y, arg0.sprite_index);
|
|
20
|
}
|
|
21
|
with (_marker)
|
|
22
|
{
|
|
23
|
scr_spritematchscr_spritematch
function scr_spritematch(arg0)
{
sprite_index = arg0.sprite_index;
image_index = arg0.image_index;
x = arg0.x;
y = arg0.y;
image_blend = arg0.image_blend;
image_alpha = arg0.image_alpha;
image_angle = arg0.image_angle;
image_xscale = arg0.image_xscale;
image_yscale = arg0.image_yscale;
} (arg0);
|
|
24
|
scr_depthscr_depth
function scr_depth(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10));
} ();
|
|
25
|
}
|
|
26
|
return _marker;
|
|
27
|
}
|