Hello i am the sole dev for BNB and im currently scratching my head around how i could potentially add sound effects to states in the game, I would like to know if there are any ways i can make sound effects occur when a player or enemy is affected with a custiom state, any advice would help greatly!
2 Likes
What engine are you working in?
If the state is happening often, tie it to a common event. You make the state apply, noise happen, bob’s your uncle.
Since you didn’t say, I don’t know what language/engine you’re working with, but most likely you’d just use whatever command is proper to play a sound file inline with your conditional statement that recognizes the (new) character state.
Eg:
if situation
do stuff
play sound
Or the sound first, or the sound inside the “stuff” if it’s really involved and changes relevant things. Again, details I don’t have about your code.