New question about stage scripts:
task Stage{
wait(1); //Required to be here, greater than 0.
PlayMusic(music1);
CreateEnemyBossFromFile(section1, GetCenterX, 0, 1.4, 90, 0);
WaitForZeroEnemy; //MANDATORY or the rest of the code will never be executed!!!
wait(60);
CreateEnemyBossFromFile(section2, GetCenterX, 0, 1.4, 90, 0);
WaitForZeroEnemy;
FadeOutMusic(music1, 30); //3 seconds to fade out
wait(120);
Stage1;
wait(120);
PlayMusic(music1);
CreateEnemyBossFromFile(section4, GetCenterX, 0, 1.4, 90, 0);
WaitForZeroEnemy;
wait(180);
Clear;
}
Basically, the second PLayMusic(music1) does not work and the music never plays. Is there a way to get the music to play other than loading it as a separate music file?