Step 1 : (Copy the mediafiles)

For the beginning take the file mediafiles.zip (that comes again with the tutorial) and add all images and sounds to the project. Of course you should use subfolders again.


Step 2 : (Enable Music)

By entering the room "SecondRoom" we want a musictrack to be played. Add a musictrack to the project, a mp3-file or an ogg-file or whatever. (You should probarbly have some musictracks on your HD, right ;) )
Open the scriptwindow and in the gamepool click on the roomentry "SecondRoom", this will let you modify the script for the room "SecondRoom". Here you can create entering- and exiting-events for this room. Example :

  on (enter)
   playmusic (yourMusicTitle)

  on (exit)
   stopmusic ()



Step 3 : (Loop Sounds)

To brake the silence in the first room, too, we will enable a looping sound in it. Add this to the script of the "FirstRoom" :

  on (enter)
   loopsound (woob)

  on (exit)
   loopstop (woob)

You can play 5 different looping sounds at the same time.

Next