Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Good concept! Loving the music. And I have a question about those sfx, how they are made inside Unity? 3 randomly playing sounds, or you randomly changing pitch somehow?

(+1)

Thanks! 

============
Regarding your question, I do a mixture of both the methods you mentioned =)

If the SFX does not take pitch changes well, I'd rework them in an external processor and import them into Unity as whatever number of separate files that I need, and randomize which gets used via a list

Alternatively if it sounds good with pitch changes, I'd randomize the audio source pitch before playing using something like this: 

audioSource.pitch = Random.Range(1.0f  - variationVal, 1.0f + variationVal);

The 'variationVal', being a small float fluctuation that you have determined to still produce good sounds;
============

For Combatman's case, it's purely the latter. There's probably a better way to do this, but I'm slowly learning, and just sticking to what I'm confident in for now XD

Hope this is useful!

(+1)

Yess, super useful, thanks for the reply!