|
1
|
function scr_axis_clover_scanscr_axis_clover_scan
function scr_axis_clover_scan()
{
if (live_call())
return global.live_result;
var width = sprite_get_width(sprite_index);
var height = sprite_get_height(sprite_index);
i_inc = width / 20;
j_inc = 1;
var x_left = x - sprite_xoffset;
var y_top = (y + sprite_yoffset) - sprite_height;
for (var j = 0; j < height; j += j_inc)
{
part = instance_create(x_left, y_top + j, obj_piece_clover_scan);
with (part)
{
target_x = other.x;
target_y = other.y;
depth = other.depth - 1;
left = 0;
top = j;
self.width = width;
self.height = other.j_inc;
sprite_index = other.sprite_index;
alarm[0]
if (j == 0)
event_perform(ev_alarm, 0);
}
}
} ()
|
|
2
|
{
|
|
3
|
if (live_call())
|
|
4
|
return global.live_result;
|
|
5
|
var width = sprite_get_width(sprite_index);
|
|
6
|
var height = sprite_get_height(sprite_index);
|
|
7
|
i_inc = width / 20;
|
|
8
|
j_inc = 1;
|
|
9
|
var x_left = x - sprite_xoffset;
|
|
10
|
var y_top = (y + sprite_yoffset) - sprite_height;
|
|
11
|
for (var j = 0; j < height; j += j_inc)
|
|
12
|
{
|
|
13
|
part = instance_create(x_left, y_top + j, obj_piece_clover_scan);
|
|
14
|
with (part)
|
|
15
|
{
|
|
16
|
target_x = other.x;
|
|
17
|
target_y = other.y;
|
|
18
|
depth = other.depth - 1;
|
|
19
|
left = 0;
|
|
20
|
top = j;
|
|
21
|
self.width = width;
|
|
22
|
self.height = other.j_inc;
|
|
23
|
sprite_index = other.sprite_index;
|
|
24
|
alarm[0]
|
|
25
|
if (j == 0)
|
|
26
|
event_perform(ev_alarm, 0);
|
|
27
|
}
|
|
28
|
}
|
|
29
|
}
|