|
1
|
function scr_marker_animatedscr_marker_animated
function scr_marker_animated()
{
var x_pos = argument[0];
var y_pos = argument[1];
var sprite = argument[2];
var anim_speed = (argument_count > 3) ? argument[3] : 0.2;
thismarker = instance_create(x_pos, y_pos, obj_marker);
with (thismarker)
{
sprite_index = sprite;
image_speed = anim_speed;
scr_depth();
}
return thismarker;
} ()
|
|
2
|
{
|
|
3
|
var x_pos = argument[0];
|
|
4
|
var y_pos = argument[1];
|
|
5
|
var sprite = argument[2];
|
|
6
|
var anim_speed = (argument_count > 3) ? argument[3] : 0.2;
|
|
7
|
thismarker = instance_create(x_pos, y_pos, obj_marker);
|
|
8
|
with (thismarker)
|
|
9
|
{
|
|
10
|
sprite_index = sprite;
|
|
11
|
image_speed = anim_speed;
|
|
12
|
scr_depthscr_depth
function scr_depth(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10));
} ();
|
|
13
|
}
|
|
14
|
return thismarker;
|
|
15
|
}
|