|
1
|
function scr_dark_marker_animatedscr_dark_marker_animated
function scr_dark_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;
image_xscale = 2;
image_yscale = 2;
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
|
image_xscale = 2;
|
|
13
|
image_yscale = 2;
|
|
14
|
scr_depthscr_depth
function scr_depth()
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
} ();
|
|
15
|
}
|
|
16
|
return thismarker;
|
|
17
|
}
|