I want to make a piano that plays a random note everytime you interact with it, like in Animal Crossing with any of the instruments. I initially thought that you'd use a variable that chooses a random number, then have that number be the filename of the sound to be played, but apparently that's incorrect.
Here's what I've managed to do so far:
And before anyone asks, yes I did search on google. Many times in fact. No, they didn't help, otherwise I wouldn't have bothered to make a topic about it.
So my question is, how do I do it?
Here's what I've managed to do so far:
And before anyone asks, yes I did search on google. Many times in fact. No, they didn't help, otherwise I wouldn't have bothered to make a topic about it.
So my question is, how do I do it?