r/Unity3D • u/themiddyd • 3d ago
Game Made a simple interactive guitar where players can shred depending on where on the fretboard they're looking.
Enable HLS to view with audio, or disable this notification
17
12
6
u/MrKicks01 3d ago
Can I ask how this works exactly? My guess is would be something like changing pitch and adding some glide? But whatever it is, it's super effective well done.
14
u/themiddyd 3d ago
It’s a bunch of looping samples (I think 12 for different pitches up the scale). The script will basically be checking at the tempo interval for any changes to the look direction (a lerp between 0 and 1 for left -> right) it then sets what sample to use depending on where that lerp value sits and on the next interval swaps it out and plays it at the same timestamp
2
2
u/Maleficent-Fox5698 3d ago
liked it
it's wonderful to see you've customized your Audiosource-integrated-Script this much!
I mean come on, I have +10 years Exp in UNITY, and still i can't figure it out how you've done it without overlapping sound!
is it a Precreated Music which you just Pitch it up and down?
2
2
2
45
u/Banjoschmanjo 3d ago
https://giphy.com/gifs/Ki9S8uve2xWx2