Hi. Excuse me for butting in, but since this is a Q&A thread...I have a couple of things to ask (which may have been answered already...I dunno)
1.) I can't play bgm at all...I've tried calling the file into a variable (or calling the file directly) and playing it with PlayMusic(), but it won't play. This works with sound effects, but I can't seem to get my mp3 files to work. Is it the file I'm using, or am I just scripting it wrong? If it's the file, what are supposed to be the proper specs for Danmakufu to play the file?
Here's the code for my stage script:
#?????e????[Stage]
#Title[EoMT Stage 1]
#Text[]
#Image[]
#BackGround[Default]
#Player[.\player\robo_b.txt]
#ScriptVersion[2]
script_stage_main
{
let get = GetCurrentScriptDirectory;
let cx = GetCenterX();
let cy = GetCenterY();
@Initialize{
Stage();
}
@MainLoop{yield;}
@Finalize{
}
task Stage{
PlayMusic(get~"bgm\st1.mp3");
wait(60);
CreateEnemyFromFile(get~"stg1enemy1.txt",cx+25,0,0,0,0);
CreateEnemyFromFile(get~"stg1enemy1.txt",cx-25,0,0,0,0);
wait(30);
CreateEnemyFromFile(get~"stg1enemy1.txt",cx,0,0,0,0);
CreateEnemyFromFile(get~"stg1enemy1.txt",cx+45,0,0,0,0);
CreateEnemyFromFile(get~"stg1enemy1.txt",cx-45,0,0,0,0);
wait(30);
CreateEnemyFromFile(get~"stg1enemy1.txt",cx+25,0,0,0,0);
CreateEnemyFromFile(get~"stg1enemy1.txt",cx-25,0,0,0,0);
CreateEnemyFromFile(get~"stg1enemy1.txt",cx+75,0,0,0,0);
CreateEnemyFromFile(get~"stg1enemy1.txt",cx-75,0,0,0,0);
WaitZeroEnemy();
wait(60);
CreateEnemyBossFromFile(get~"stg1midboss_normal.txt",cx,0,0,0,0);
WaitZeroEnemy();
CreateEventFromScript("Talk1");
while(OnEvent()){yield;}
wait(120);
CreateEnemyBossFromFile(get~"stg1boss_normal.txt",cx,0,0,0,0);
WaitZeroEnemy();
wait(60);
CreateEventFromScript("Talk2");
while(OnEvent()){yield;}
wait(60);
Clear();
}
//wait function, simulates if statement
function wait(w){
loop(w){yield;}
}
//halts script until there aren't any enemies on screen
function WaitZeroEnemy(){
while(GetEnemyNum()!= 0){yield;}
}
}
And here's the gist of the code for my starting boss event script...do I need to stop the last bgm first before playing the next one?
script_event entertalk(){
let get = GetCurrentScriptDirectory;
@Initialize{
}
@MainLoop{
TextOutA("\c[AQUA]Gist of text");
PlayMusic(get ~ ".\bgm\st1b.mp3");
TextOutA("\c[RED]Text");
SetStep(2); //sets life to 0 so it moves to the next boss subscript
}
@Finalize{
}
//wait function, simulates if statement
function wait(w){
loop(w){yield;}
}
}
2.) How do I put in frames? By frames I mean the decorative window around the playing area and the scorelists.