How to toggle Game Sounds & Music

3
  • 21 favourites

Stats

5,670 visits, 8,495 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Introduction

Well, as a game developer, you are going to use lots of sounds, and one or couple of music for your game to make it interesting. Sometimes player wants to mute the game sounds for some reason, and using keyboard to mute & return sounds is quite unprofessional to do plus the player may not notice that the sound has been muted, so he may think that the game has a bug! ( Which we all don't want that as developers)

Note: This Tutorial for inexperienced developers in construct 2

How To Make It?

Requirements

We need the following to make the sounds toggle:

1- Sprite with two animations: one On , second Off

2- Music & sounds of course :lol:

3- Mouse or Touch Plugin ( Your choice )

Let's Start

1- Add the sprite that has two animation (name the first on, second off)

2- Name the sprite into "Sound"

3- Place your sprite anywhere in your game ( It's recommended to put it in the title screen, in the left-bottom or right-bottom)

Events

Add the following events & actions as seen below:

Conclusion

Congratulation on making a professional sound toggle button! In this way the player can easily toggle sounds and notice if he accidentally muted the game :lol:

  • 1 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • can i turn the sount off across layouts? been having an issue with this it only turns of the sound on the layout you on