|
1
|
function scr_board_blconscr_board_blcon
function scr_board_blcon(arg0, arg1, arg2)
{
with (obj_board_marker)
{
if (sprite_index == arg2)
instance_destroy();
}
var nolift = instance_create(arg0, arg1, obj_board_marker);
nolift.sprite_index = arg2;
nolift.image_speed = 0.2;
nolift.image_index = 1;
nolift.vspeed = -2.8;
nolift.gravity = 0.2;
nolift.depth = depth - 100;
if (nolift.y <= 64)
nolift.y = 64;
scr_darksize(nolift);
scr_doom(nolift, 20);
with (nolift)
scr_delay_var("gravity", 0, 15);
with (nolift)
scr_delay_var("vspeed", 0, 15);
snd_stop(snd_error);
snd_play(snd_error);
} (arg0, arg1, arg2)
|
|
2
|
{
|
|
3
|
with (obj_board_marker)
|
|
4
|
{
|
|
5
|
if (sprite_index == arg2)
|
|
6
|
instance_destroy();
|
|
7
|
}
|
|
8
|
var nolift = instance_create(arg0, arg1, obj_board_marker);
|
|
9
|
nolift.sprite_index = arg2;
|
|
10
|
nolift.image_speed = 0.2;
|
|
11
|
nolift.image_index = 1;
|
|
12
|
nolift.vspeed = -2.8;
|
|
13
|
nolift.gravity = 0.2;
|
|
14
|
nolift.depth = depth - 100;
|
|
15
|
if (nolift.y <= 64)
|
|
16
|
nolift.y = 64;
|
|
17
|
scr_darksizescr_darksize
function scr_darksize()
{
var inst = id;
if (argument_count)
inst = argument0;
inst.image_xscale = 2;
inst.image_yscale = 2;
} (nolift);
|
|
18
|
scr_doomscr_doom
function scr_doom(arg0, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
}
} (nolift, 20);
|
|
19
|
with (nolift)
|
|
20
|
scr_delay_var("gravity", 0, 15);
|
|
21
|
with (nolift)
|
|
22
|
scr_delay_var("vspeed", 0, 15);
|
|
23
|
snd_stop(snd_error);
|
|
24
|
snd_play(snd_error);
|
|
25
|
}
|