Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- integer isSoundTurnedOn;
- default
- {
- touch_start(integer total_number)
- {
- // toggle isSoundTurnedOn between TRUE and FALSE
- isSoundTurnedOn = !isSoundTurnedOn;
- if (isSoundTurnedOn)
- {
- //play sound
- }
- else
- {
- // stop sound
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement