raymond
Junior Member
Posts: 53
Posts: 53
|
Post by raymond on Sept 18, 2016 15:58:27 GMT
Hello,
Here is my scenario:
My Prefab game objects are check marked as Enabled in my prefab library.
If I attach an Event Sound to them to trigger when Enabled they get triggered prematurely when the game starts when Pool Boss pools them.
Is there an option in Pool Boss to automatically disable them before pooling. (I know they get disabled almost instantly in Pool Boss but still triggers Sound Event).
As of now the only solution I know is to disable the prefab before compiling the game.
Thanks, Raymond
|
|
|
Post by DarkTonic Dev on Sept 18, 2016 16:55:20 GMT
That's expected behavior and is working properly. Since you're using a pooling solution, you should use "Spawned" event instead of Enabled. It is in the "event to activate" dropdown if you check the "pooling events" checkbox above.
|
|
raymond
Junior Member
Posts: 53
Posts: 53
|
Post by raymond on Sept 18, 2016 20:49:27 GMT
Thanks for the above answer.
New Problem: I am trying to figure out how to stop a specific sound when another specific sound plays. I know how to Ducking on the playlist background music but not a specific sound.
Tried to look it up but so far cant find the answer.
Thanks, Raymond
|
|
|
Post by DarkTonic Dev on Sept 18, 2016 21:51:40 GMT
Is the sound you want to stop in the same Sound group or not? Do you want to stop all of the sound or just the one made by the same game object that's about to play another sound?
There are several ways to do this do answer those questions first please. It would help to know more specifically what your scenario is.
|
|
raymond
Junior Member
Posts: 53
Posts: 53
|
Post by raymond on Sept 18, 2016 22:03:04 GMT
This is the way I did it for when the player dies. In the GameController script that handles player lives.
//Game Over Music MasterAudio.PlaySoundAndForget(gameOverSound); MasterAudio.FadeBusToVolume("PowerUp",0,0.25f,null);
|
|
raymond
Junior Member
Posts: 53
Posts: 53
|
Post by raymond on Sept 18, 2016 22:03:42 GMT
Works well for my needs. Just figured it out 5 minutes ago.
|
|
|
Post by DarkTonic Dev on Sept 19, 2016 0:49:06 GMT
Ok cool!
|
|