Advertisement
Gayngel

Untitled

Jun 17th, 2016
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. integer isSoundTurnedOn;
  2. default
  3. {
  4. touch_start(integer total_number)
  5. {
  6. // toggle isSoundTurnedOn between TRUE and FALSE
  7. isSoundTurnedOn = !isSoundTurnedOn;
  8.  
  9. if (isSoundTurnedOn)
  10. {
  11. //play sound
  12. }
  13. else
  14. {
  15. // stop sound
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement