Hey everyone, is it possible to store a list of numbers and access them in order?
I'm working on an open world game and am currently trying to implement a music system. I've already added the first playable instruments, so you can dependent on the instrument you selected and the keys/combination of keys you press play notes or chords. That part was easy and works wonderfully.
Now comes the tricky part - since I want the players to be able to earn gold with music (basically busking) I'm trying to figure out how to implement songs and tunes. If I want those to be longer than 5 notes or so it'll become an eventing nightmare as far as I can see.
I was hoping there is a way to store a tune's notes as a string of numbers and one after another if the right note is played.
For example a progression of C E G B G E C I'd display as 1 3 5 7 5 3 1, then check on the first note played if that's indeed a C or 1, on the second note played if that's an E or 3 and so on. It would be easy -if tedious to event such small numbers, but I'm really hoping that it's possible to implement whole jigs or reels into this system, and those have at least 50+ notes or so.
So, does anyone have an idea how to implement this? 🙂
I'm working on an open world game and am currently trying to implement a music system. I've already added the first playable instruments, so you can dependent on the instrument you selected and the keys/combination of keys you press play notes or chords. That part was easy and works wonderfully.
Now comes the tricky part - since I want the players to be able to earn gold with music (basically busking) I'm trying to figure out how to implement songs and tunes. If I want those to be longer than 5 notes or so it'll become an eventing nightmare as far as I can see.
I was hoping there is a way to store a tune's notes as a string of numbers and one after another if the right note is played.
For example a progression of C E G B G E C I'd display as 1 3 5 7 5 3 1, then check on the first note played if that's indeed a C or 1, on the second note played if that's an E or 3 and so on. It would be easy -if tedious to event such small numbers, but I'm really hoping that it's possible to implement whole jigs or reels into this system, and those have at least 50+ notes or so.
So, does anyone have an idea how to implement this? 🙂