How To Play Music in Puzzle Script

You’ve learned to make Puzzle Script games, but wouldn’t it be great if they had some music? Well, you can! This tutorial will show you how.  It assumes no prior programming knowledge except the previous Puzzle Script tutorials I have written.

NOTE: Currently this feature seems to be broken in Puzzle Script, so skip to the Next Tutorial

What To Do

Open the starter project. The way that music works in puzzle script is that you can link your game to a single Youtube video. PuzzleScript will then automatically play any sound in that video. Open Youtube and choose a music video you like or use this one:

youtube.com/watch?v=CKAc3nYEatw

To play music from the video, you need to grab the video’s unique ID. The part highlighted in green above is the unique ID.

headertagsmusic

Underneath the homepage author tag at the top of your project, add the youtube tag followed by your video’s unique ID, like so:

youtube CKAc3nYEatw

To test and see if it works, click ‘Share’ and click the game link (not the source code link). You can’t hear music while testing inside the Puzzle Script editor. If you want music in your game, you will have to upload it as a Youtube video and put the unique ID in your project. You can only have one Youtube video per project.

Sample Project

You can look a sample Puzzle Script project here. The next tutorial teaches you how to use the Action Command.

Follow this blog for more tutorials on Puzzle Script, games development and updates on my projects.

Next Tutorial >

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s