|
1
|
function scr_platswap_initscr_platswap_init
function scr_platswap_init(arg0 = undefined, arg1 = true)
{
if (!instance_exists(obj_platswap))
return -4;
if (!instance_exists(obj_platswap_helper))
instance_create(0, 0, obj_platswap_helper);
var _helper = 658;
if (arg0 == undefined)
{
ignore_yorigin = 0;
if (!variable_instance_exists(id, "force_yplat"))
force_yplat = false;
with (_helper)
init_platswap(other.id, arg1);
return _helper;
}
if (instance_exists(arg0))
{
with (arg0)
{
if (!variable_instance_exists(id, "force_yplat"))
force_yplat = false;
ignore_yorigin = 0;
with (_helper)
init_platswap(arg0.id, arg1);
return _helper;
}
}
}
function scr_platswap_init_alt(arg0 = id, arg1 = true)
{
if (!instance_exists(obj_platswap))
return -4;
if (!instance_exists(obj_platswap_helper))
instance_create(0, 0, obj_platswap_helper);
if (instance_exists(arg0))
{
with (arg0)
{
ignore_yorigin = 1;
if (!variable_instance_exists(id, "force_yplat"))
force_yplat = false;
with (_helper)
init_platswap(other.id, arg1);
return _helper;
}
}
}
function scr_plat_make_pauseable(arg0 = id)
{
if (!instance_exists(obj_platswap))
return -4;
if (!instance_exists(obj_plat_pausing_helper))
instance_create(0, 0, obj_plat_pausing_helper);
with (obj_plat_pausing_helper)
add_object(arg0);
} (arg0 = undefined, arg1 = true)
|
|
2
|
{
|
|
3
|
if (!instance_exists(obj_platswap))
|
|
4
|
return -4;
|
|
5
|
if (!instance_exists(obj_platswap_helper))
|
|
6
|
instance_create(0, 0, obj_platswap_helper);
|
|
7
|
var _helper = 658;
|
|
8
|
if (arg0 == undefined)
|
|
9
|
{
|
|
10
|
ignore_yorigin = 0;
|
|
11
|
if (!variable_instance_exists(id, "force_yplat"))
|
|
12
|
force_yplat = false;
|
|
13
|
with (_helper)
|
|
14
|
init_platswap(other.id, arg1);
|
|
15
|
return _helper;
|
|
16
|
}
|
|
17
|
if (instance_exists(arg0))
|
|
18
|
{
|
|
19
|
with (arg0)
|
|
20
|
{
|
|
21
|
if (!variable_instance_exists(id, "force_yplat"))
|
|
22
|
force_yplat = false;
|
|
23
|
ignore_yorigin = 0;
|
|
24
|
with (_helper)
|
|
25
|
init_platswap(arg0.id, arg1);
|
|
26
|
return _helper;
|
|
27
|
}
|
|
28
|
}
|
|
29
|
}
|
|
30
|
|
|
31
|
function scr_platswap_init_alt(arg0 = id, arg1 = true)
|
|
32
|
{
|
|
33
|
if (!instance_exists(obj_platswap))
|
|
34
|
return -4;
|
|
35
|
if (!instance_exists(obj_platswap_helper))
|
|
36
|
instance_create(0, 0, obj_platswap_helper);
|
|
37
|
if (instance_exists(arg0))
|
|
38
|
{
|
|
39
|
with (arg0)
|
|
40
|
{
|
|
41
|
ignore_yorigin = 1;
|
|
42
|
if (!variable_instance_exists(id, "force_yplat"))
|
|
43
|
force_yplat = false;
|
|
44
|
with (_helper)
|
|
45
|
init_platswap(other.id, arg1);
|
|
46
|
return _helper;
|
|
47
|
}
|
|
48
|
}
|
|
49
|
}
|
|
50
|
|
|
51
|
function scr_plat_make_pauseable(arg0 = id)
|
|
52
|
{
|
|
53
|
if (!instance_exists(obj_platswap))
|
|
54
|
return -4;
|
|
55
|
if (!instance_exists(obj_plat_pausing_helper))
|
|
56
|
instance_create(0, 0, obj_plat_pausing_helper);
|
|
57
|
with (obj_plat_pausing_helper)
|
|
58
|
add_object(arg0);
|
|
59
|
}
|