PDA

View Full Version : Sound for game


fredbelli
05-10-2002, 03:39 PM
I've started a game at:
http://texasmedia.cocomm.utexas.edu/students/fsodergren/fred/4.html

My idea is have the player drag the pieces over onto the stage and arragne them as they wish. Once arranged, they click a button and mouse over the pieces, and each piece will play a musical note. If they are in the correct order, they will hear Mary Had a Little Lamb.

I do not want them to hear any of the sounds until they hit a button to turn the sound on. Right now they hear the sounds at every stage. The sounds are currently imbeded in a movieclip, and the sound plays regardless. Do you know of a way to code this to work like I've described?

Let me know what you think!

Fred

sfa
05-10-2002, 03:58 PM
You can use a variable like sound = on or off and have an if statement on rollover to see if it should play or not.

SFA