|
1
|
event_user(0);
|
|
2
|
played = 0;
|
|
3
|
if (caster_is_playing(global.currentsong) != 1)
|
|
4
|
{
|
|
5
|
if (global.plot <= 35)
|
|
6
|
{
|
|
7
|
global.currentsong = caster_load("music/tone2.ogg");
|
|
8
|
caster_loop(global.currentsong, 0.2, 1);
|
|
9
|
instance_create(0, 0, obj_musfadein);
|
|
10
|
alarm[0] = 5; gml_Object_obj_tundramusicspecial1_Alarm_0.gml
if (global.flag[47 status_creepy_tundra] == -1)
{
caster_free(global.currentsong2);
exit;
}
if (global.flag[47 status_creepy_tundra] > 0 && played == 0 && obj_mainchara.x > 660)
{
caster_loop(global.currentsong2, 0.2, 1.58);
played = 1;
}
if (global.flag[47 status_creepy_tundra] > 0 && played == 1 && obj_mainchara.x > 1350)
{
caster_loop(global.currentsong2, 0.2, 1.68);
played = 2;
}
if (global.flag[47 status_creepy_tundra] > 2 && played == 2 && obj_mainchara.x > 1600)
{
ex2 = caster_loop(global.currentsong2, 0.1, 2.12);
played = 3;
}
alarm[0] = 5;
if (global.flag[47 status_creepy_tundra] > 2 && played == 3 && obj_mainchara.x > 1610)
{
alarm[0] = 3;
caster_set_volume(global.currentsong2, 0.2 + ((obj_mainchara.x - 1610) / 860));
caster_set_volume(ex2, 0.1 + ((obj_mainchara.x - 1610) / 860));
}
|
|
11
|
}
|
|
12
|
if (global.plot > 35)
|
|
13
|
{
|
|
14
|
global.currentsong = caster_load("music/snowy.ogg");
|
|
15
|
caster_loop(global.currentsong, 1, 0.95);
|
|
16
|
}
|
|
17
|
}
|
|
18
|
if (global.plot <= 35)
|
|
19
|
{
|
|
20
|
alarm[0] = 5; gml_Object_obj_tundramusicspecial1_Alarm_0.gml
if (global.flag[47 status_creepy_tundra] == -1)
{
caster_free(global.currentsong2);
exit;
}
if (global.flag[47 status_creepy_tundra] > 0 && played == 0 && obj_mainchara.x > 660)
{
caster_loop(global.currentsong2, 0.2, 1.58);
played = 1;
}
if (global.flag[47 status_creepy_tundra] > 0 && played == 1 && obj_mainchara.x > 1350)
{
caster_loop(global.currentsong2, 0.2, 1.68);
played = 2;
}
if (global.flag[47 status_creepy_tundra] > 2 && played == 2 && obj_mainchara.x > 1600)
{
ex2 = caster_loop(global.currentsong2, 0.1, 2.12);
played = 3;
}
alarm[0] = 5;
if (global.flag[47 status_creepy_tundra] > 2 && played == 3 && obj_mainchara.x > 1610)
{
alarm[0] = 3;
caster_set_volume(global.currentsong2, 0.2 + ((obj_mainchara.x - 1610) / 860));
caster_set_volume(ex2, 0.1 + ((obj_mainchara.x - 1610) / 860));
}
|
|
21
|
global.currentsong2 = caster_load("music/tone3.ogg");
|
|
22
|
}
|