Inserting Pictures

You can show a picture using the “Show a picture” command. Let’s make our “kitchen” room in the tutorial game show a picture of a kitchen when we enter it.

First we need to find a picture of a kitchen.

Now select the “kitchen” room from the tree. Click the Scripts tab, and go to the “After entering the room” script. Add a “Show picture” command, and browse for your kitchen photo. The picture will be automatically copied to the same folder as your game file.

Now launch the game and go to the kitchen to verify that the picture is displayed with the room description.

Static Picture Frame

If you want to use a picture for each room, creating a script for each one is a pain, and more importantly, you probably don’t want the picture to scroll in-line with the rest of the game text.

Instead, you can use the static picture frame option. This provides a static area at the top of the screen for your picture, while the text scrolls underneath. You can change the picture using a script command, and you can also give each room its own picture.

If you want to have a picture per room, but some of the rooms will have no picture, you should turn on the “Clear picture panel if room has no picture” option. Otherwise, if you go to a room with no picture, the previous picture will still be shown in the frame.

If you click on any room and go to the “Room” tab, you’ll see a “Room picture” editor at the top. Here you can browse for a picture file, and it will be copied to your game folder. You can also choose existing picture files from the drop-down.

You can also change the frame picture using a script, with the “Set frame picture” command.

Sound and Video

You can play a sound in a script using the “Play sound” command. Quest supports both WAV and MP3 files, but I recommend you use MP3 files as much as possible because these are more widely supported by web browsers on different platforms.

You can choose “Wait for sound to finish before continuing” if you want to run the remaining script only after the sound has finished. This is useful for intro sequences, or letting some speech finish before moving the player to a different room, for example.

The “loop” option will cause the sound to continue playing until the “Stop sound” command is run. Note that Quest won’t let you use both the “wait” and “loop” options at the same time - hopefully for obvious reasons.

You can also embed video in your game via the “Scripts” tab. The video will appear in-line with the game text. You can embed videos from YouTube or Vimeo. You will need to specify the video id - you can usually see this easily in the URL of a video on the YouTube or Vimeo sites. For example you can find Jason Scott, Director of GET LAMP, on GoogleTechTalks Channel. the Youtube ID is “LRhbcDzbGSU.”

You can also find script commands to print an email or web address hyperlink.