|
1
|
var colconfig = 0;
|
|
2
|
doripple = false;
|
|
3
|
if (instance_exists(obj_church_ripple_area_manager))
|
|
4
|
{
|
|
5
|
image_alpha = 1;
|
|
6
|
if (obj_church_ripple_area_manager.active == true)
|
|
7
|
{
|
|
8
|
image_alpha = 0;
|
|
9
|
doripple = true;
|
|
10
|
actsound = 3;
|
|
11
|
}
|
|
12
|
}
|
|
13
|
if (instance_exists(obj_dw_churchc_encounter2))
|
|
14
|
{
|
|
15
|
actsound = 3;
|
|
16
|
colconfig = 0;
|
|
17
|
}
|
|
18
|
if (instance_exists(obj_dw_church_rippleworship))
|
|
19
|
{
|
|
20
|
doripple = false;
|
|
21
|
actsound = 0;
|
|
22
|
}
|
|
23
|
if (instance_exists(obj_dw_churchc_treasurechest) || room == room_dw_churchc_treasurechest)
|
|
24
|
{
|
|
25
|
doripple = false;
|
|
26
|
actsound = -1;
|
|
27
|
}
|
|
28
|
if (instance_exists(obj_dw_church_waterfallroom))
|
|
29
|
{
|
|
30
|
if (extflag == "endswitch")
|
|
31
|
{
|
|
32
|
doripple = false;
|
|
33
|
actsound = 0;
|
|
34
|
colconfig = 1;
|
|
35
|
}
|
|
36
|
}
|
|
37
|
event_inherited();
|
|
38
|
siner++;
|
|
39
|
sprite_index = spr_dw_church_glowtile;
|
|
40
|
var col1 = 16756046;
|
|
41
|
with (obj_church_ripple_area_manager)
|
|
42
|
{
|
|
43
|
if (active)
|
|
44
|
colconfig = 2;
|
|
45
|
}
|
|
46
|
if (extflag == "endswitch")
|
|
47
|
colconfig = 1;
|
|
48
|
if (colconfig == 2)
|
|
49
|
{
|
|
50
|
col1 = 16777215;
|
|
51
|
sprite_index = spr_dw_church_glowtileyellow;
|
|
52
|
}
|
|
53
|
if (glow && scr_onscreen_tolerancescr_onscreen_tolerance
function scr_onscreen_tolerance(arg0, arg1)
{
obj = arg0;
spacer = arg1;
if ((obj.x + obj.sprite_width + spacer) < camerax() || (obj.x - spacer) > (camerax() + 640) || (obj.y + obj.sprite_height + spacer) < cameray() || (obj.y - spacer) > (cameray() + 480))
return false;
else
return true;
} (id, 80))
|
|
54
|
{
|
|
55
|
with (instance_create(x, y, obj_marker_darkness_unlit))
|
|
56
|
{
|
|
57
|
sprite_index = other.sprite_index;
|
|
58
|
image_speed = 0;
|
|
59
|
var scale = 2 + abs(sin(other.siner / 30) * 0.2);
|
|
60
|
scr_sizescr_size
function scr_size(arg0 = image_xscale, arg1 = image_yscale, arg2 = id)
{
with (arg2)
{
image_xscale = arg0;
image_yscale = arg1;
}
} (scale, scale);
|
|
61
|
var lifetime = 12 - other.pressed;
|
|
62
|
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_xscale", scale, (scale / 2) + (sin(other.siner / 6) * 0.1), lifetime, 2, "in");
|
|
63
|
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_yscale", scale, (scale / 2) + (sin(other.siner / 4) * 0.1), lifetime, 2, "in");
|
|
64
|
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", clamp((0.35 + (sin(other.siner / 20) * 0.125)) - other.pressed, 0.05, 0.5), 0, lifetime);
|
|
65
|
image_blend = col1;
|
|
66
|
direction = other.siner * 12;
|
|
67
|
if (i_ex(obj_darkness_overlay))
|
|
68
|
depth = 100000000;
|
|
69
|
else
|
|
70
|
depth = other.depth - 1;
|
|
71
|
gravity = -0.7;
|
|
72
|
vspeed = 1.5;
|
|
73
|
scr_doomscr_doom
function scr_doom(arg0 = id, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
persistent = arg0.persistent;
}
} (id, lifetime);
|
|
74
|
}
|
|
75
|
}
|