Version
menu_open

Using States to Switch Between Music Types

Now that different types of music have been established for different scenarios, the next step is to integrate them so they can react to changes in gameplay. This can be done by introducing States (or game states) that can be used to switch between music containers, in addition to affecting other aspects of sound or music.

The process of creating a music switching system begins by defining states that will be communicated from the game and used to switch between different types of music, in this case: action and ambient music. States represent changes in the game that affect the properties of existing sounds, music, or motion on a global scale. The music switch container operates on the same fundamental principal as the switch container in the Actor-Mixer Hierarchy. The addition of time and tempo functionality allows for musical transitions when switching between containers.

Creating gameplay states to switch between music types

Parenting the already existing ambient and action music loop playlists in a music switch container allows for the application of the newly created gameplay state group.

Music Playlist Containers can now be assigned to each of the states in the Music Switch Container Association Editor either by dragging and dropping them from the hierarchy or using the Selection button.

Creating a music switch container using the gameplay state group and assigning a Music Playlist Container to its states

Now that the simple assignment of music playlist containers to states has been established, the default transition between music types can be auditioned via states in the transport control.

Auditioning music changes based on states


Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise