|
1
|
alt = 0;
|
|
2
|
depth = 900000;
|
|
3
|
_light_marker = scr_dark_markerscr_dark_marker
function scr_dark_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
image_xscale = 2;
image_yscale = 2;
}
return thismarker;
} (x + 20, y + 20, spr_dw_teevie_floor_light);
|
|
4
|
_light_marker.image_alpha = 0.15;
|
|
5
|
with (_light_marker)
|
|
6
|
{
|
|
7
|
scr_depthscr_depth
function scr_depth()
{
if (argument_count > 0)
{
with (argument0)
depth = 100000 - ((y * 10) + (sprite_height * 10));
}
else
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
}
} ();
|
|
8
|
depth += 410;
|
|
9
|
}
|
|
10
|
_is_active = false;
|
|
11
|
_is_paused = false;
|
|
12
|
_depth_temp = 0;
|
|
13
|
|
|
14
|
turn_on = function()
|
|
15
|
{
|
|
16
|
with (_light_marker)
|
|
17
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_alpha", 0.15, 0.35, 15, 2, "out");
|
|
18
|
};
|
|
19
|
|
|
20
|
turn_off = function()
|
|
21
|
{
|
|
22
|
with (_light_marker)
|
|
23
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_alpha", 0.35, 0.15, 15, 2, "out");
|
|
24
|
};
|
|
25
|
|
|
26
|
pause_toggle = function()
|
|
27
|
{
|
|
28
|
_is_paused = true;
|
|
29
|
_depth_temp = depth;
|
|
30
|
depth = 1000150;
|
|
31
|
with (_light_marker)
|
|
32
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpvar_respect()
{
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("image_alpha", image_alpha, 0, 15, 2, "out");
|
|
33
|
};
|
|
34
|
|
|
35
|
unpause_toggle = function()
|
|
36
|
{
|
|
37
|
_is_paused = false;
|
|
38
|
depth = _depth_temp;
|
|
39
|
alarm[0] = 1; gml_Object_obj_dw_ch3_teevie_floor_light_Alarm_0.gml
if (_is_paused)
exit;
if (_is_active)
{
_is_active = false;
turn_off();
}
else
{
_is_active = true;
turn_on();
}
alarm[0] = 30;
|
|
40
|
};
|
|
41
|
|
|
42
|
if (room == room_dw_teevie_watercooler)
|
|
43
|
{
|
|
44
|
depth = 1199900;
|
|
45
|
with (_light_marker)
|
|
46
|
scr_depth_altscr_depth_alt
function scr_depth_alt()
{
depth = 100000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10));
} ();
|
|
47
|
alt = 1;
|
|
48
|
_is_active = true;
|
|
49
|
}
|