Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Ocarina Script

You use it the same way as the original, you set up the songs at the top of the script.

My revision has four songs at the top.

It basically has three sections

i is the number of the song
Code:
    @ocarina[i] = []Array number

This is where you set up the notes.
again i is the number of the song, the only difference here is the 0 - 5 this means that this song has six notes.  If you want it to have three notes then you make the array 0-2.  If you want it to have ten notes you make it 0-9.
Code:
    @ocarina[i][0] = direction (2 = down, 4 = left, 6 = right, 8 = up)
    @ocarina[i][1] = direction (2 = down, 4 = left, 6 = right, 8 = up)
    @ocarina[i][2] = direction (2 = down, 4 = left, 6 = right, 8 = up)
    @ocarina[i][3] = direction (2 = down, 4 = left, 6 = right, 8 = up)
    @ocarina[i][4] = direction (2 = down, 4 = left, 6 = right, 8 = up)
    @ocarina[i][5] = direction (2 = down, 4 = left, 6 = right, 8 = up)

This section must be in all songs that you create, and as you can see in the examples on my revision the numbers must follow the ones from the notes section.
Code:
    @ocarina[i][6] = Name_of_song
    @ocarina[i][7] = Color_of_song_name
    @ocarina[i][8] = Song's sound file (SE)
    @ocarina[i][9] = Switch that activates when the song is player correctly.

You can see in the demo posted by RENEGADEOFBMX how to call the script and how to make it work after you play a song. ^_^
 
How do you get this to pause? I use UMS and when the song information is loaded, the Image shows up, but its super fast, so its hard for the end user to see how to play the song, because the image is displayed, then almost instantly taken off.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top