Closed pleduc closed 10 years ago
The scene triggers "scene-loaded" and "scene-live" events on each layer. If your audio
component is attached to an entity on the layer, you just need to add "scene-live" (or "scene-loaded") to the entity-container
childEvents list so the entity (and audio
component) hear it.
Thank you! This worked perfectly. I have another question about audio, but I think it would be smarter to open a new thread.
Awesome, glad it worked! Closing this thread out.
I was wondering if there was an event I could have an audio component listen for so as soon as the scene that contains the audio component loads, the audio fires. Like for when the title screen loads having a "Welcome to the game" audio. Or audio with the level's objective as soon as that level loads. Or will I have to trigger this manually with my own component?