Gameboy startup sound effect

broken image

So, finally I hope, this answer still comes just in time for your story telling, as it was already posted 3 days ago. Instead of the (if: $playSound) a simple $playSound would be sufficient. Passage with any name but tagged with: header (if: (passage:)'s name is 'InTheMorning')[\ *BUT* - as I see while trying that - this will make the effect.mp3 also play on the Start passage of the story, To avoid that, the 'header' tagged passage should look like this (assuming the start passage of the Story is named 'InTheMorning') Then this script should play on any passage you switch to in this story. snippet inside and do add the tag header to the passage. Instead, create one extra passage with the. So if you want to play the same sound on really 'each new passage', then it might work without copying the script code to each passage: The 'Next' passage contains the same code slightly changed: Effect Sound bouncing in? Var audio= document.createElement('audio') Start passage: (your code unchanged) Check the tune BPCore then loads the a script from the application bundle, and turns over control to Lua (more.

broken image

The engine, upon startup, loads the address of the end of the ROM (provided by the linker), and finds the resource bundle. Switching to Next passage: effect.mp3 'tata's immediately, and music still plays. a then creates a ROM file, by copying the compiled code in the BPCoreEngine.gba ROM, and appending a new section to the ROM, containing all of the resource files.Opening the story: music.mp3 sounds nicely.I did not change the story javascript, just added to the passages. I simply copied your code into two passages, 1 with other mp3 and without loop, see below.

broken image