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.
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:
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.
Underneath the homepage author tag at the top of your project, add the youtube tag followed by your video’s unique ID, like so:
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.