Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

play & stop sound

Status
Not open for further replies.

vizido

MIS
Jul 14, 2000
9
IL
i want to build a button that can turn the music on and off.<br>how do I do it?
 
First of all define a variable, with value 'P' ( Play ).<br>&nbsp;Create a seperate scene, which has the music. <br>In the Actions of the button, check the value of the variable.<br>If 'P'<br>&nbsp;&nbsp;change the value of the variable to 'S' (Stop).<br>&nbsp;&nbsp;Give 'Goto & play Scene2,1 '.<br>Else<br>&nbsp;&nbsp;change the value of the variable to 'P'.<br>&nbsp;&nbsp;Give 'Stop all sounds'<br>Endif<br><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top