Zebra0.com

alice eventsPlaying a background sound

Playing a background sound

To play background music use initializeEventListeners to play sound together with myFirstMethod.

In this video you will learn to import and play a sound.


Text of video

In this video we play a background sound from the Alice gallery.

In order to make the sound play in the background, we use a doTogether control structure in initialize. We place both the command to active myFirstMethod and the command to play the sound in the doTogether structure.

NEXT: Click on the bear event