Ren’Py – Play Music With A Synth Mini-game Script!

Ren'Py Hidden Object Game Script

I’ve never done a mini-game script in Ren’Py where the goal is to play music. So I thought I’d try making a fun little game where you have to play the correct order of notes on a synthesizer/keyboard in order to unlock something, like a hidden door or the like. It’s up to you how you want to use it!

It’s available to download on my Patreon for anyone in the Supporter tier and up!

Each key on the keyboard plays a specific note in order of the keys (C3 – C5). I recorded the notes myself using a digital instrument.

The goal with the script is to find out what the correct order of notes are and then press the corresponding buttons on the synth for something to unlock.

I also incorporated a note/hint that shows the player how to solve it. Otherwise it would be too difficult to solve the puzzle. You could implement something similar by letting the player find or earn this note by doing other puzzles or quests.

It only plays the sound for as long as the audio file plays. Unlike realistic synths, there’s unfortunately no ability to detect how long the player is pressing the key for and have the sound play accordingly.

The script is commented as usual, and there’s more information on it in the Patreon post for it. As always, if you find problems with the script or have questions about it, you can let me know in the comments of the post!

See a video of the minigame below to see how it works!

You can download the script on my Patreon by being a member of the Supporter tier or higher.

You Might Also Like

Leave a Reply