You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
667 lines
25 KiB
667 lines
25 KiB
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
|
|
<object>
|
|
<spriteName>sWaterParticle</spriteName>
|
|
<solid>0</solid>
|
|
<visible>0</visible>
|
|
<depth>-10000</depth>
|
|
<persistent>-1</persistent>
|
|
<parentName><undefined></parentName>
|
|
<maskName><undefined></maskName>
|
|
<events>
|
|
<event eventtype="0" enumb="0">
|
|
<action>
|
|
<libid>1</libid>
|
|
<id>603</id>
|
|
<kind>7</kind>
|
|
<userelative>0</userelative>
|
|
<isquestion>0</isquestion>
|
|
<useapplyto>-1</useapplyto>
|
|
<exetype>2</exetype>
|
|
<functionname></functionname>
|
|
<codestring></codestring>
|
|
<whoName>self</whoName>
|
|
<relative>0</relative>
|
|
<isnot>0</isnot>
|
|
<arguments>
|
|
<argument>
|
|
<kind>1</kind>
|
|
<string>currentbgm = musTitle;
|
|
previousbgm = 254;
|
|
bossbgm = sndJump;
|
|
sound_id = 0;
|
|
playingSAX = false;
|
|
prevPlayingSAX = playingSAX;
|
|
sameRoomSAX = false;
|
|
prevSameRoomSAX = sameRoomSAX;
|
|
fadeoutTimer = 2000;
|
|
prevSameRoomSAXTimer = 0;
|
|
stopSAXMusTimer = 0;
|
|
chasedBySAX = false;
|
|
prevChasedBySAX = chasedBySAX;
|
|
runningFromSAX = false;
|
|
|
|
useMultistageMusic = 0;
|
|
|
|
if (file_exists("musQueenbreak.ogg") and file_exists("musQueen2.ogg") and file_exists("musQueen3.ogg")) {
|
|
useMultistageMusic = 1;
|
|
}
|
|
</string>
|
|
</argument>
|
|
</arguments>
|
|
</action>
|
|
</event>
|
|
<event eventtype="2" enumb="11">
|
|
<action>
|
|
<libid>1</libid>
|
|
<id>603</id>
|
|
<kind>7</kind>
|
|
<userelative>0</userelative>
|
|
<isquestion>0</isquestion>
|
|
<useapplyto>-1</useapplyto>
|
|
<exetype>2</exetype>
|
|
<functionname></functionname>
|
|
<codestring></codestring>
|
|
<whoName>self</whoName>
|
|
<relative>0</relative>
|
|
<isnot>0</isnot>
|
|
<arguments>
|
|
<argument>
|
|
<kind>1</kind>
|
|
<string>sfx_stop(musItemGet);
|
|
</string>
|
|
</argument>
|
|
</arguments>
|
|
</action>
|
|
</event>
|
|
<event eventtype="2" enumb="10">
|
|
<action>
|
|
<libid>1</libid>
|
|
<id>603</id>
|
|
<kind>7</kind>
|
|
<userelative>0</userelative>
|
|
<isquestion>0</isquestion>
|
|
<useapplyto>-1</useapplyto>
|
|
<exetype>2</exetype>
|
|
<functionname></functionname>
|
|
<codestring></codestring>
|
|
<whoName>self</whoName>
|
|
<relative>0</relative>
|
|
<isnot>0</isnot>
|
|
<arguments>
|
|
<argument>
|
|
<kind>1</kind>
|
|
<string>if (oMusicV2.bossbgm == sndJump) mus_stop_muted();
|
|
</string>
|
|
</argument>
|
|
</arguments>
|
|
</action>
|
|
</event>
|
|
<event eventtype="2" enumb="9">
|
|
<action>
|
|
<libid>1</libid>
|
|
<id>603</id>
|
|
<kind>7</kind>
|
|
<userelative>0</userelative>
|
|
<isquestion>0</isquestion>
|
|
<useapplyto>-1</useapplyto>
|
|
<exetype>2</exetype>
|
|
<functionname></functionname>
|
|
<codestring></codestring>
|
|
<whoName>self</whoName>
|
|
<relative>0</relative>
|
|
<isnot>0</isnot>
|
|
<arguments>
|
|
<argument>
|
|
<kind>1</kind>
|
|
<string>sfx_stop(sound_id);
|
|
sfx_play(sound_id);
|
|
</string>
|
|
</argument>
|
|
</arguments>
|
|
</action>
|
|
</event>
|
|
<event eventtype="2" enumb="8">
|
|
<action>
|
|
<libid>1</libid>
|
|
<id>603</id>
|
|
<kind>7</kind>
|
|
<userelative>0</userelative>
|
|
<isquestion>0</isquestion>
|
|
<useapplyto>-1</useapplyto>
|
|
<exetype>2</exetype>
|
|
<functionname></functionname>
|
|
<codestring></codestring>
|
|
<whoName>self</whoName>
|
|
<relative>0</relative>
|
|
<isnot>0</isnot>
|
|
<arguments>
|
|
<argument>
|
|
<kind>1</kind>
|
|
<string>mus_pause(previousbgm);
|
|
</string>
|
|
</argument>
|
|
</arguments>
|
|
</action>
|
|
</event>
|
|
<event eventtype="2" enumb="7">
|
|
<action>
|
|
<libid>1</libid>
|
|
<id>603</id>
|
|
<kind>7</kind>
|
|
<userelative>0</userelative>
|
|
<isquestion>0</isquestion>
|
|
<useapplyto>-1</useapplyto>
|
|
<exetype>2</exetype>
|
|
<functionname></functionname>
|
|
<codestring></codestring>
|
|
<whoName>self</whoName>
|
|
<relative>0</relative>
|
|
<isnot>0</isnot>
|
|
<arguments>
|
|
<argument>
|
|
<kind>1</kind>
|
|
<string>// Part 3 Queen theme
|
|
|
|
if (!instance_exists(oQueenFireball) && !sfx_isplaying(musQueen3))
|
|
{
|
|
if (instance_exists(oQueen) || global.ingame == false)
|
|
{
|
|
mus_play(musQueen3);
|
|
oMusicV2.bossbgm = musQueen3;
|
|
mus_stop(musQueen);
|
|
mus_stop(musQueen2);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
alarm[7] = 1;
|
|
}
|
|
</string>
|
|
</argument>
|
|
</arguments>
|
|
</action>
|
|
</event>
|
|
<event eventtype="2" enumb="6">
|
|
<action>
|
|
<libid>1</libid>
|
|
<id>603</id>
|
|
<kind>7</kind>
|
|
<userelative>0</userelative>
|
|
<isquestion>0</isquestion>
|
|
<useapplyto>-1</useapplyto>
|
|
<exetype>2</exetype>
|
|
<functionname></functionname>
|
|
<codestring></codestring>
|
|
<whoName>self</whoName>
|
|
<relative>0</relative>
|
|
<isnot>0</isnot>
|
|
<arguments>
|
|
<argument>
|
|
<kind>1</kind>
|
|
<string>// Part 2 Queen theme.
|
|
if (!instance_exists(oQueenFireball) && !sfx_isplaying(musQueen2))
|
|
{
|
|
if (instance_exists(oQueen) || global.ingame == false)
|
|
{
|
|
mus_play(musQueen2);
|
|
oMusicV2.bossbgm = musQueen2;
|
|
mus_stop(musQueen);
|
|
mus_stop(musQueen3);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
alarm[6] = 1;
|
|
}
|
|
</string>
|
|
</argument>
|
|
</arguments>
|
|
</action>
|
|
</event>
|
|
<event eventtype="2" enumb="5">
|
|
<action>
|
|
<libid>1</libid>
|
|
<id>603</id>
|
|
<kind>7</kind>
|
|
<userelative>0</userelative>
|
|
<isquestion>0</isquestion>
|
|
<useapplyto>-1</useapplyto>
|
|
<exetype>2</exetype>
|
|
<functionname></functionname>
|
|
<codestring></codestring>
|
|
<whoName>self</whoName>
|
|
<relative>0</relative>
|
|
<isnot>0</isnot>
|
|
<arguments>
|
|
<argument>
|
|
<kind>1</kind>
|
|
<string>if (!sfx_isplaying(musQueenIntro) && !sfx_isplaying(musQueen)) {
|
|
if (instance_exists(oQueen) || global.ingame == false) {
|
|
mus_play(musQueen);
|
|
oMusicV2.bossbgm = musQueen;
|
|
mus_stop(musQueen2);
|
|
mus_stop(musQueen3);
|
|
}
|
|
} else alarm[5] = 1;
|
|
</string>
|
|
</argument>
|
|
</arguments>
|
|
</action>
|
|
</event>
|
|
<event eventtype="2" enumb="4">
|
|
<action>
|
|
<libid>1</libid>
|
|
<id>603</id>
|
|
<kind>7</kind>
|
|
<userelative>0</userelative>
|
|
<isquestion>0</isquestion>
|
|
<useapplyto>-1</useapplyto>
|
|
<exetype>2</exetype>
|
|
<functionname></functionname>
|
|
<codestring></codestring>
|
|
<whoName>self</whoName>
|
|
<relative>0</relative>
|
|
<isnot>0</isnot>
|
|
<arguments>
|
|
<argument>
|
|
<kind>1</kind>
|
|
<string>if (!sfx_isplaying(musMonsterAppear) && !sfx_isplaying(musOmegaFight)) {
|
|
if (instance_exists(oMOmega) && oMOmega.myhealth > false || global.ingame == 0) {
|
|
mus_play(musOmegaFight);
|
|
oMusicV2.bossbgm = musOmegaFight;
|
|
}
|
|
} else alarm[4] = 1;
|
|
</string>
|
|
</argument>
|
|
</arguments>
|
|
</action>
|
|
</event>
|
|
<event eventtype="2" enumb="3">
|
|
<action>
|
|
<libid>1</libid>
|
|
<id>603</id>
|
|
<kind>7</kind>
|
|
<userelative>0</userelative>
|
|
<isquestion>0</isquestion>
|
|
<useapplyto>-1</useapplyto>
|
|
<exetype>2</exetype>
|
|
<functionname></functionname>
|
|
<codestring></codestring>
|
|
<whoName>self</whoName>
|
|
<relative>0</relative>
|
|
<isnot>0</isnot>
|
|
<arguments>
|
|
<argument>
|
|
<kind>1</kind>
|
|
<string>if (!sfx_isplaying(musMonsterAppear) && !sfx_isplaying(musZetaFight)) {
|
|
if (instance_exists(oMZeta) && oMZeta.myhealth > false || global.ingame == 0) {
|
|
mus_play(musZetaFight);
|
|
oMusicV2.bossbgm = musZetaFight;
|
|
}
|
|
} else alarm[3] = 1;
|
|
</string>
|
|
</argument>
|
|
</arguments>
|
|
</action>
|
|
</event>
|
|
<event eventtype="2" enumb="2">
|
|
<action>
|
|
<libid>1</libid>
|
|
<id>603</id>
|
|
<kind>7</kind>
|
|
<userelative>0</userelative>
|
|
<isquestion>0</isquestion>
|
|
<useapplyto>-1</useapplyto>
|
|
<exetype>2</exetype>
|
|
<functionname></functionname>
|
|
<codestring></codestring>
|
|
<whoName>self</whoName>
|
|
<relative>0</relative>
|
|
<isnot>0</isnot>
|
|
<arguments>
|
|
<argument>
|
|
<kind>1</kind>
|
|
<string>if (!sfx_isplaying(musMonsterAppear) && !sfx_isplaying(musGammaFight)) {
|
|
if (instance_exists(oMGamma) && oMGamma.myhealth > false || global.ingame == 0) {
|
|
mus_play(musGammaFight);
|
|
oMusicV2.bossbgm = musGammaFight;
|
|
}
|
|
} else alarm[2] = 1;
|
|
</string>
|
|
</argument>
|
|
</arguments>
|
|
</action>
|
|
</event>
|
|
<event eventtype="2" enumb="1">
|
|
<action>
|
|
<libid>1</libid>
|
|
<id>603</id>
|
|
<kind>7</kind>
|
|
<userelative>0</userelative>
|
|
<isquestion>0</isquestion>
|
|
<useapplyto>-1</useapplyto>
|
|
<exetype>2</exetype>
|
|
<functionname></functionname>
|
|
<codestring></codestring>
|
|
<whoName>self</whoName>
|
|
<relative>0</relative>
|
|
<isnot>0</isnot>
|
|
<arguments>
|
|
<argument>
|
|
<kind>1</kind>
|
|
<string>if (!sfx_isplaying(musMonsterAppear) && !sfx_isplaying(musAlphaFight)) {
|
|
if (instance_exists(oMAlpha) && oMAlpha.myhealth > false || global.ingame == 0) {
|
|
mus_play(musAlphaFight);
|
|
oMusicV2.bossbgm = musAlphaFight;
|
|
}
|
|
} else alarm[1] = 1;
|
|
</string>
|
|
</argument>
|
|
</arguments>
|
|
</action>
|
|
</event>
|
|
<event eventtype="2" enumb="0">
|
|
<action>
|
|
<libid>1</libid>
|
|
<id>603</id>
|
|
<kind>7</kind>
|
|
<userelative>0</userelative>
|
|
<isquestion>0</isquestion>
|
|
<useapplyto>-1</useapplyto>
|
|
<exetype>2</exetype>
|
|
<functionname></functionname>
|
|
<codestring></codestring>
|
|
<whoName>self</whoName>
|
|
<relative>0</relative>
|
|
<isnot>0</isnot>
|
|
<arguments>
|
|
<argument>
|
|
<kind>1</kind>
|
|
<string>if (!sfx_isplaying(musFanfare)) {
|
|
if (!sfx_isplaying(currentbgm)) {
|
|
mus_current_fadein();
|
|
alarm[0] = 10;
|
|
}
|
|
} else alarm[0] = 5;
|
|
|
|
|
|
/*
|
|
//Original Code
|
|
if (!sfx_isplaying(musFanfare)) {
|
|
mus_current_fadein();
|
|
} else alarm[0] = 5;
|
|
</string>
|
|
</argument>
|
|
</arguments>
|
|
</action>
|
|
</event>
|
|
<event eventtype="3" enumb="0">
|
|
<action>
|
|
<libid>1</libid>
|
|
<id>603</id>
|
|
<kind>7</kind>
|
|
<userelative>0</userelative>
|
|
<isquestion>0</isquestion>
|
|
<useapplyto>-1</useapplyto>
|
|
<exetype>2</exetype>
|
|
<functionname></functionname>
|
|
<codestring></codestring>
|
|
<whoName>self</whoName>
|
|
<relative>0</relative>
|
|
<isnot>0</isnot>
|
|
<arguments>
|
|
<argument>
|
|
<kind>1</kind>
|
|
<string>sameRoomSAX = false;
|
|
|
|
if(audio_is_playing(musFanfare)) exit;
|
|
if(global.spectator) exit;
|
|
|
|
if(instance_exists(oClient)){
|
|
if(ds_list_size(oClient.roomListData) > 0){
|
|
for(var i=0; i<ds_list_size(oClient.roomListData); i++){
|
|
var arrDraw = oClient.roomListData[| i];
|
|
var arrRoom = arrDraw[14];
|
|
var arrRoomPrev = arrDraw[18];
|
|
var arrSAX = arrDraw[20];
|
|
if((arrSAX && !global.sax) && room != rm_transition && ((arrRoom == room || (arrRoom == global.lastroom && (room == rm_options || room == itemroom || room == subscreenroom || room == maproom || room == rm_subscreen))) || ((arrRoomPrev == room || (arrRoomPrev == global.lastroom && (room == rm_options || room == itemroom || room == subscreenroom || room == maproom || room == rm_subscreen))) && (arrRoom == rm_options || arrRoom == itemroom || arrRoom == subscreenroom || arrRoom == maproom || arrRoom == rm_subscreen)))){
|
|
sameRoomSAX = true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
if(global.showHealthIndicators && global.saxmode){
|
|
chasedBySAX = true;
|
|
} else chasedBySAX = false;
|
|
|
|
if(!global.spectator && global.saxmode && !global.sax && (global.showHealthIndicators || global.enemyNearby || global.escapeTimer > 0 || global.inMusSAXRange || sameRoomSAX || chasedBySAX)){
|
|
//show_debug_message(string(global.enemyNearby));
|
|
//show_debug_message(string(global.escapeTimer));
|
|
//show_debug_message(string(global.inMusSAXRange));
|
|
//show_debug_message(string(sameRoomSAX));
|
|
//show_debug_message(string(chasedBySAX));
|
|
playingSAX = true;
|
|
} else playingSAX = false;
|
|
|
|
if(prevPlayingSAX != playingSAX){
|
|
if(!prevPlayingSAX && playingSAX && runningFromSAX && !chasedBySAX){
|
|
if (audio_is_playing(oMusicV2.previousbgm)) audio_sound_gain(oMusicV2.previousbgm, 0, fadeoutTimer);
|
|
if (audio_is_playing(oMusicV2.currentbgm)) audio_sound_gain(oMusicV2.currentbgm, 0, fadeoutTimer);
|
|
if (!audio_is_playing(musSAXEnvironmentalAmbience)) audio_play_sound(musSAXEnvironmentalAmbience, 1, true);
|
|
audio_sound_gain(musSAXEnvironmentalAmbience, 0, 0);
|
|
audio_sound_gain(musSAXEnvironmentalAmbience, global.opmusicvolume / 100, fadeoutTimer);
|
|
//show_debug_message("does this run");
|
|
}
|
|
if(prevPlayingSAX && !playingSAX && !chasedBySAX){
|
|
if (audio_is_playing(musSAXEnvironmentalAmbience)) audio_sound_gain(musSAXEnvironmentalAmbience, 0, fadeoutTimer);
|
|
if (!audio_is_playing(oMusicV2.currentbgm)) audio_play_sound(oMusicV2.currentbgm, 1, true);
|
|
if (audio_sound_get_gain(oMusicV2.currentbgm) == 0 || audio_sound_get_gain(oMusicV2.currentbgm) == 0.00){
|
|
audio_sound_gain(oMusicV2.currentbgm, 0, 0);
|
|
audio_sound_gain(oMusicV2.currentbgm, global.opmusicvolume / 100, fadeoutTimer);
|
|
}
|
|
//show_debug_message("no longer in range");
|
|
}
|
|
prevPlayingSAX = playingSAX;
|
|
}
|
|
|
|
if(prevSameRoomSAX != sameRoomSAX){
|
|
if(playingSAX){
|
|
if(!prevSameRoomSAX && sameRoomSAX && !chasedBySAX){
|
|
if (audio_is_playing(oMusicV2.previousbgm)) audio_sound_gain(oMusicV2.previousbgm, 0, 0);
|
|
if (audio_is_playing(oMusicV2.currentbgm)) audio_sound_gain(oMusicV2.currentbgm, 0, 0);
|
|
if (audio_is_playing(musSAXEnvironmentalAmbience)) audio_sound_gain(musSAXEnvironmentalAmbience, 0, fadeoutTimer);
|
|
if (!audio_is_playing(musSAXAppear)) audio_play_sound(musSAXAppear, 1, true);
|
|
audio_sound_gain(musSAXAppear, 0, 0);
|
|
audio_sound_gain(musSAXAppear, global.opmusicvolume / 100, 0);
|
|
mus_stop_all();
|
|
//show_debug_message("same room");
|
|
}
|
|
if(prevSameRoomSAX && !sameRoomSAX && !chasedBySAX){
|
|
if (audio_is_playing(musSAXAppear)) audio_sound_gain(musSAXAppear, 0, fadeoutTimer);
|
|
if (!audio_is_playing(musSAXEnvironmentalAmbience)) audio_play_sound(musSAXEnvironmentalAmbience, 1, true);
|
|
audio_sound_gain(musSAXEnvironmentalAmbience, 0, 0);
|
|
audio_sound_gain(musSAXEnvironmentalAmbience, global.opmusicvolume / 100, fadeoutTimer);
|
|
//show_debug_message("left the same room");
|
|
runningFromSAX = true;
|
|
//prevSameRoomSAXTimer = 15 * 60;
|
|
}
|
|
}
|
|
prevSameRoomSAX = sameRoomSAX;
|
|
}
|
|
|
|
if(sameRoomSAX){
|
|
if (audio_is_playing(oMusicV2.previousbgm)) audio_sound_gain(oMusicV2.previousbgm, 0, 0);
|
|
if (audio_is_playing(oMusicV2.currentbgm)) audio_sound_gain(oMusicV2.currentbgm, 0, 0);
|
|
}
|
|
|
|
if(prevChasedBySAX != chasedBySAX){
|
|
if(!prevChasedBySAX && chasedBySAX){
|
|
if(audio_is_playing(oMusicV2.currentbgm)) audio_sound_gain(oMusicV2.currentbgm, 0, 0);
|
|
if(audio_is_playing(musSAXEnvironmentalAmbience)) audio_sound_gain(musSAXEnvironmentalAmbience, 0, 0);
|
|
if(audio_is_playing(musSAXAppear)) audio_sound_gain(musSAXAppear, 0, 0);
|
|
if(audio_is_playing(musSAXChase)) audio_stop_sound(musSAXChase);
|
|
if(!audio_is_playing(musSAXChase)) audio_play_sound(musSAXChase, 1, true);
|
|
audio_sound_gain(musSAXChase, 0, 0);
|
|
audio_sound_gain(musSAXChase, global.opmusicvolume / 100, 0);
|
|
}
|
|
if(prevChasedBySAX && !chasedBySAX){
|
|
audio_sound_gain(musSAXChase, 0, fadeoutTimer);
|
|
if(playingSAX){
|
|
if(sameRoomSAX){
|
|
if (audio_is_playing(oMusicV2.previousbgm)) audio_sound_gain(oMusicV2.previousbgm, 0, 0);
|
|
if (audio_is_playing(oMusicV2.currentbgm)) audio_sound_gain(oMusicV2.currentbgm, 0, 0);
|
|
if (audio_is_playing(musSAXEnvironmentalAmbience)) audio_sound_gain(musSAXEnvironmentalAmbience, 0, fadeoutTimer);
|
|
if (!audio_is_playing(musSAXAppear)) audio_play_sound(musSAXAppear, 1, true);
|
|
audio_sound_gain(musSAXAppear, 0, 0);
|
|
audio_sound_gain(musSAXAppear, global.opmusicvolume / 100, 0);
|
|
//show_debug_message("sameRoomSAX");
|
|
} else {
|
|
if (audio_is_playing(oMusicV2.previousbgm)) audio_sound_gain(oMusicV2.previousbgm, 0, 0);
|
|
if (audio_is_playing(oMusicV2.currentbgm)) audio_sound_gain(oMusicV2.currentbgm, 0, 0);
|
|
if (audio_is_playing(musSAXAppear)) audio_sound_gain(musSAXAppear, 0, fadeoutTimer);
|
|
if (!audio_is_playing(musSAXEnvironmentalAmbience)) audio_play_sound(musSAXEnvironmentalAmbience, 1, true);
|
|
audio_sound_gain(musSAXEnvironmentalAmbience, 0, 0);
|
|
audio_sound_gain(musSAXEnvironmentalAmbience, global.opmusicvolume / 100, fadeoutTimer);
|
|
//show_debug_message("runningFromSAX");
|
|
}
|
|
} else {
|
|
audio_stop_sound(musSAXEnvironmentalAmbience);
|
|
audio_stop_sound(musSAXAppear);
|
|
audio_stop_sound(musSAXChase);
|
|
if (audio_is_playing(oMusicV2.currentbgm)) audio_sound_gain(oMusicV2.currentbgm, global.opmusicvolume / 100, fadeoutTimer);
|
|
}
|
|
}
|
|
prevChasedBySAX = chasedBySAX;
|
|
}
|
|
|
|
if(global.inMusSAXRangePrev != global.inMusSAXRange){
|
|
if(global.inMusSAXRangePrev && !global.inMusSAXRange){
|
|
//show_debug_message(string(global.inMusSAXRangePrev) + " " + string(global.inMusSAXRange));
|
|
if(audio_is_playing(musSAXEnvironmentalAmbience)) audio_sound_gain(musSAXEnvironmentalAmbience, 0, fadeoutTimer);
|
|
if(audio_is_playing(musSAXAppear)) audio_sound_gain(musSAXAppear, 0, fadeoutTimer);
|
|
stopSAXMusTimer = 120;
|
|
if(runningFromSAX) runningFromSAX = false;
|
|
}
|
|
global.inMusSAXRangePrev = global.inMusSAXRange;
|
|
}
|
|
|
|
if(((audio_is_playing(musSAXEnvironmentalAmbience) && audio_sound_get_gain(musSAXEnvironmentalAmbience) > 0) || (audio_is_playing(musSAXAppear) && audio_sound_get_gain(musSAXAppear) > 0) || audio_is_playing(musSAXChase)) && playingSAX){
|
|
//show_debug_message("gain is fading currentbgm");
|
|
//show_debug_message(string(audio_is_playing(musSAXEnvironmentalAmbience)) + " " + string(audio_sound_get_gain(musSAXEnvironmentalAmbience)));
|
|
//show_debug_message(string(audio_is_playing(musSAXAppear)) + " " + string(audio_sound_get_gain(musSAXAppear)));
|
|
//show_debug_message(string(audio_is_playing(musSAXChase)) + " " + string(audio_sound_get_gain(musSAXChase)));
|
|
if (audio_is_playing(oMusicV2.previousbgm)) audio_sound_gain(oMusicV2.previousbgm, 0, fadeoutTimer);
|
|
if (audio_is_playing(oMusicV2.currentbgm)) audio_sound_gain(oMusicV2.currentbgm, 0, fadeoutTimer);
|
|
}
|
|
|
|
/*
|
|
if(prevSameRoomSAXTimer > 0){
|
|
if(prevSameRoomSAXTimer == 1){
|
|
if(audio_is_playing(musSAXEnvironmentalAmbience)) audio_sound_gain(musSAXEnvironmentalAmbience, 0, fadeoutTimer);
|
|
if(audio_is_playing(musSAXAppear)) audio_sound_gain(musSAXAppear, 0, fadeoutTimer);
|
|
stopSAXMusTimer = 120;
|
|
if(audio_is_playing(oMusicV2.currentbgm) && (audio_sound_get_gain(oMusicV2.currentbgm) == 0 || audio_sound_get_gain(oMusicV2.currentbgm) == 0.00)) audio_sound_gain(oMusicV2.currentbgm, global.opmusicvolume / 100, fadeoutTimer);
|
|
}
|
|
prevSameRoomSAXTimer--;
|
|
}
|
|
*/
|
|
|
|
if(stopSAXMusTimer > 0){
|
|
//show_debug_message("stop mus timer = " + string(stopSAXMusTimer));
|
|
if(stopSAXMusTimer == 1){
|
|
if(audio_is_playing(musSAXEnvironmentalAmbience)) audio_stop_sound(musSAXEnvironmentalAmbience);
|
|
if(audio_is_playing(musSAXAppear)) audio_stop_sound(musSAXAppear);
|
|
if(audio_is_playing(musSAXChase)) audio_stop_sound(musSAXChase);
|
|
if (audio_is_playing(oMusicV2.currentbgm)) audio_sound_gain(oMusicV2.currentbgm, global.opmusicvolume / 100, fadeoutTimer);
|
|
}
|
|
stopSAXMusTimer--;
|
|
}
|
|
|
|
if(audio_is_playing(musSAXChase) && audio_sound_get_gain(musSAXChase) == 0){
|
|
audio_stop_sound(musSAXChase);
|
|
if (audio_is_playing(oMusicV2.currentbgm)) audio_sound_gain(oMusicV2.currentbgm, global.opmusicvolume / 100, fadeoutTimer);
|
|
}
|
|
|
|
//if(global.inMusSAXRange && stopSAXMusTimer == 0 && prevSameRoomSAXTimer > 1 && prevSameRoomSAXTimer < 3) prevSameRoomSAXTimer = 3;
|
|
</string>
|
|
</argument>
|
|
</arguments>
|
|
</action>
|
|
</event>
|
|
<event eventtype="7" enumb="4">
|
|
<action>
|
|
<libid>1</libid>
|
|
<id>603</id>
|
|
<kind>7</kind>
|
|
<userelative>0</userelative>
|
|
<isquestion>0</isquestion>
|
|
<useapplyto>-1</useapplyto>
|
|
<exetype>2</exetype>
|
|
<functionname></functionname>
|
|
<codestring></codestring>
|
|
<whoName>self</whoName>
|
|
<relative>0</relative>
|
|
<isnot>0</isnot>
|
|
<arguments>
|
|
<argument>
|
|
<kind>1</kind>
|
|
<string>alarm[10] = 210;
|
|
</string>
|
|
</argument>
|
|
</arguments>
|
|
</action>
|
|
</event>
|
|
<event eventtype="8" enumb="0">
|
|
<action>
|
|
<libid>1</libid>
|
|
<id>603</id>
|
|
<kind>7</kind>
|
|
<userelative>0</userelative>
|
|
<isquestion>0</isquestion>
|
|
<useapplyto>-1</useapplyto>
|
|
<exetype>2</exetype>
|
|
<functionname></functionname>
|
|
<codestring></codestring>
|
|
<whoName>self</whoName>
|
|
<relative>0</relative>
|
|
<isnot>0</isnot>
|
|
<arguments>
|
|
<argument>
|
|
<kind>1</kind>
|
|
<string>var yoff, sep;
|
|
yoff = 48;
|
|
sep = 8;
|
|
draw_set_alpha(1);
|
|
draw_set_font(fontMenuSmall);
|
|
draw_set_color(c_white);
|
|
draw_text_shadow(view_xview[0], view_yview[0] + yoff, " Current Song: " + string(currentbgm) + " - Playing: " + string(audio_is_playing(currentbgm)) + " - A0: " + string(alarm[0]));
|
|
draw_text_shadow(view_xview[0], view_yview[0] + yoff + sep * 1, " Boss: " + string(bossbgm));
|
|
draw_text_shadow(view_xview[0], view_yview[0] + yoff + sep * 2, " Title: " + string(254) + " - Playing: " + string(audio_is_playing(musTitle)));
|
|
draw_text_shadow(view_xview[0], view_yview[0] + yoff + sep * 3, " Fanfare: " + string(256) + " - Playing: " + string(audio_is_playing(musFanfare)));
|
|
draw_text_shadow(view_xview[0], view_yview[0] + yoff + sep * 4, " Cave: " + string(257) + " - Playing: " + string(audio_is_playing(musMainCave)) + " - Vol: " + string(audio_sound_get_gain(musMainCave)));
|
|
draw_text_shadow(view_xview[0], view_yview[0] + yoff + sep * 5, " MetAppear: " + string(258) + " - Playing: " + string(audio_is_playing(musMonsterAppear)));
|
|
draw_text_shadow(view_xview[0], view_yview[0] + yoff + sep * 6, " Alpha: " + string(259) + " - Playing: " + string(audio_is_playing(musAlphaFight)));
|
|
draw_text_shadow(view_xview[0], view_yview[0] + yoff + sep * 7, " Amb: " + string(260) + " - Playing: " + string(audio_is_playing(musCaveAmbience)));
|
|
draw_text_shadow(view_xview[0], view_yview[0] + yoff + sep * 8, " Area1A: " + string(261) + " - Playing: " + string(audio_is_playing(musArea1A)));
|
|
draw_text_shadow(view_xview[0], view_yview[0] + yoff + sep * 9, " Area1B: " + string(262) + " - Playing: " + string(audio_is_playing(musArea1B)));
|
|
</string>
|
|
</argument>
|
|
</arguments>
|
|
</action>
|
|
</event>
|
|
</events>
|
|
<PhysicsObject>0</PhysicsObject>
|
|
<PhysicsObjectSensor>0</PhysicsObjectSensor>
|
|
<PhysicsObjectShape>0</PhysicsObjectShape>
|
|
<PhysicsObjectDensity>0.5</PhysicsObjectDensity>
|
|
<PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution>
|
|
<PhysicsObjectGroup>0</PhysicsObjectGroup>
|
|
<PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
|
|
<PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
|
|
<PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction>
|
|
<PhysicsObjectAwake>-1</PhysicsObjectAwake>
|
|
<PhysicsObjectKinematic>-1</PhysicsObjectKinematic>
|
|
<PhysicsShapePoints/>
|
|
</object>
|