For my Assignmant 2 in school, I need to make a storytelling video game for IT. In my main menu, I have 3 options to choose: Play, Bonus and Options. While I have a song for the main menu, I have a different song for my Bonus menu. I need to loop my song in the main menu as well as I need to stop the loop when opening the Bonus menu. I tried around 15 different ways to make it work, but it doesn't. I tried fitting in variables and "if-else", "repeat until" and "if" blocks. Please, help me out. I have a bit less than a month to complete my storytelling video game.
I use version 1.4
I will owe 30 US dollars to whoever first solves out my problem.
If the first to solve out the problem won't suggest it in time, I will owe him 10 US dollars.
Offline
Can you upload what you have right now?
Also, most people here are minors, don't have online bank accounts, and are willing to just help out a fellow Scratcher for free.
Offline
I don't need thirty dollars. I have 54689. Just kidding. Any way, do you have "play sound until done", or just "play sound"? Sometimes, the "play sound until done" block will glitch when you press have "stop all sounds". Have you done something like this?
play sound [whatevermusicyouhave v] wait until < < bonus = yes > or < options = yes > > // or however you can sense when the buttons are selected--I use variables sometimes stop all sounds if < < bonus = yes > > play sound [bonus music v] else play sound [options music v] // I'm pretty sure these scratchblocks are a fail :)
Last edited by mythbusteranimator (2012-05-08 15:59:23)
Offline
You will probably need a variable to do it. If the different menus are backgrounds then the script should look something like this.
when gf clicked forever if <([costume# v] of [stage v]) = (1)> stop all sounds play sound [song1 v] end if <([costume# v] of [stage v]) = (2)> stop all sounds play sound [song2 v] endAnd I don't need any money.
Last edited by shpeters (2012-05-08 16:00:29)
Offline