I have a portion in my game where it plays a piece of music for about a minute. I am playing this music as a regular sound file as type "alert" so that the sound volume is not lowered around the game sounds (for ex: music will dim volume when there are combat sound effects).
This music needs to stop when a player kills a boss (it's a FFA-style, so each player has their own boss, and that player's music ends when they kill their own boss). When I play an audio file for a specific player, then it will stop the audio file for everyone else who was already listening to it. I.e., this music file can be played for only one person at a time, or for all players at once. I guess it would be more accurate to say that it can play for only one player group at a time.
Is there a way to allow the same sound object to be played for multiple player groups at the same time?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have a portion in my game where it plays a piece of music for about a minute. I am playing this music as a regular sound file as type "alert" so that the sound volume is not lowered around the game sounds (for ex: music will dim volume when there are combat sound effects).
This music needs to stop when a player kills a boss (it's a FFA-style, so each player has their own boss, and that player's music ends when they kill their own boss). When I play an audio file for a specific player, then it will stop the audio file for everyone else who was already listening to it. I.e., this music file can be played for only one person at a time, or for all players at once. I guess it would be more accurate to say that it can play for only one player group at a time.
Is there a way to allow the same sound object to be played for multiple player groups at the same time?