Sound Settings (Coding) – Week 5

Now that we are slowly closing in to the final release of the game, one of the leftover tasks left to get involved with, are the sound settings of the game. Namely, i am talking about the master volume of the game, as well as the music volume and the SFX volume of it. As everyone is probably familiar with, there are always sounds in games that can be intrusive to different people (explosions or shooting for example), so the aim of having the above things, is to give the player the option to lower the volume of the game or maybe even mute it.

For starters, i was able to find a way to connect the music and SFX to the appropriate sliders we are using on Unity, but i was not able to find a way to not overlap with the master volume. That means, that whenever you would try to use the master volume slider, the other two sliders would not work at all and vice versa. Additionally, when i was testing the sliders, i did it with the game running on the background while the pause menu was open (to be able to see if it works) and failed to notice, that when i try to use it properly (opening the pause menu as intended while playing) the sliders did not work at all. This ended up being a real headache, which i am currently working on. I would say it is not one of the flashiest tasks and it shouldnt be difficult in general, but i am having some trouble with it. I am not sure what else i can write about it to be honest, since it remains a working progress.

The picture below, shows the basic idea of the volume menu (which will change by the final version)eJwFwdENhCAMANBdGIDScu2h2xAkaKJCaP26uPu993PPPN3qdrOhK8B2aOlz82p95lZ9672dNY9DfekXZLNc9qvepkAcYkCRJMjECSkCpYWJEvGCH8H4lQAjP-rH3dz7B5yHIX0.png

As i stated above, the point is to make the master volume to be the “alpha” among the sliders, so when you use that, the other 2 wont matter as much, but if you want something specific toned down you use either either the music volume or the SFX volume.

Unfortunately i cannot go into more detail on the task, because like i stated above, it is still something that i am currently working on. Hopefully it wont be as tragic as the beginning of the task has been.

Leave a comment