|
1
|
after_image_active = false;
|
|
2
|
after_image_timer = 0;
|
|
3
|
if (scr_debugscr_debug
function scr_debug()
{
return global.debug == 1;
} ())
|
|
4
|
audio_stop_sound(snd_deep_noise);
|
|
5
|
_window_marker = scr_markerscr_marker
function scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (x, y, spr_flowerking_window_flash);
|
|
6
|
with (_window_marker)
|
|
7
|
{
|
|
8
|
depth = 98700;
|
|
9
|
image_index = 0;
|
|
10
|
image_speed = 0.2;
|
|
11
|
image_alpha = 0;
|
|
12
|
visible = 0;
|
|
13
|
}
|
|
14
|
_window_negative = scr_markerscr_marker
function scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (x, y, spr_flowerking_window_negative);
|
|
15
|
with (_window_negative)
|
|
16
|
{
|
|
17
|
depth = 98699;
|
|
18
|
image_index = 0;
|
|
19
|
image_alpha = 0;
|
|
20
|
visible = 0;
|
|
21
|
}
|
|
22
|
|
|
23
|
start = function()
|
|
24
|
{
|
|
25
|
snd_play(snd_fountain_make_mini);
|
|
26
|
with (_window_marker)
|
|
27
|
{
|
|
28
|
visible = 1;
|
|
29
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
var _id = self;
if (!is_struct(self))
_id = id;
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_lerpcol()
{
if (argument_count < 6)
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
} ("image_alpha", 0, 1, 15);
|
|
30
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
var _id = self;
if (!is_struct(self))
_id = id;
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_lerpcol()
{
if (argument_count < 6)
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
} ("image_speed", 0, 0.7, 15);
|
|
31
|
}
|
|
32
|
};
|
|
33
|
|
|
34
|
switch_windows = function()
|
|
35
|
{
|
|
36
|
audio_play_sound(snd_deep_noise, 50, 1);
|
|
37
|
with (_window_marker)
|
|
38
|
{
|
|
39
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
var _id = self;
if (!is_struct(self))
_id = id;
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_lerpcol()
{
if (argument_count < 6)
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
} ("image_alpha", 1, 0, 20);
|
|
40
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
var _id = self;
if (!is_struct(self))
_id = id;
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_lerpcol()
{
if (argument_count < 6)
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
} ("image_speed", 0.7, 0, 20);
|
|
41
|
scr_delay_var("visible", false, 21);
|
|
42
|
}
|
|
43
|
with (_window_negative)
|
|
44
|
{
|
|
45
|
visible = 1;
|
|
46
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
var _id = self;
if (!is_struct(self))
_id = id;
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_lerpcol()
{
if (argument_count < 6)
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
} ("image_alpha", 0, 1, 20);
|
|
47
|
}
|
|
48
|
scr_delay_var("after_image_active", true, 21);
|
|
49
|
};
|
|
50
|
|
|
51
|
fade_out = function()
|
|
52
|
{
|
|
53
|
audio_sound_gain(snd_deep_noise, 0, 1000);
|
|
54
|
};
|
|
55
|
|
|
56
|
clean_up = function()
|
|
57
|
{
|
|
58
|
audio_stop_sound(snd_deep_noise);
|
|
59
|
};
|