Forum rules - please read before posting.

creating music and ambience soundtrack controller

I will have several scenes with different musics and ambiences. I also want to create some random variability to music playing and pauses when only ambience is on. Somehow I think creating this with ALs will create a very complex system.

Do you have any ideas on how to create it with AL or should I just script it.

Comments

  • You can determine if Ambience is currently playing with:

    AC.KickStarter.stateHandler.GetAmbienceEngine ().IsPlaying ()
    

    This could be incorporated into a custom Action if you wanted to check this state before issuing other commands, but it really depends on how complex you want your controller to be.

    Music can be played and stopped through script fairly simply:

    AC.KickStarter.stateHandler.GetMusicEngine ().Play (trackID, loop, isQueued, fadeTime);
    AC.KickStarter.stateHandler.GetMusicEngine ().Stop ();
    AC.KickStarter.stateHandler.GetMusicEngine ().FadeOut (fadeTime);
    

    See the Music component's entry in the Scripting Guide here for full details on its available functions.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.