I have a music panel that i am currently working on and i have a music bar with some buttons such as back 15 seconds, play/pause and forward 15 seconds.
I would like to make the bar move when the song is playing, if the player hits the pause button it will pause the bar. I have tried a few times before although could not get it the way i would like it. I also would like to use it as a tween - if possible.
What is the best way to make this, e.g. using a bool value connecting if the value is true then it moves?
Hmm, this is an interesting question as I haven’t messed too much with audio. I think you could just find the percent of the song that has been played, and then have a slider that goes on the X axis by 0.percent. This should work even when the audio is paused as the percent of the song that has played obviously won’t increase unless the audio is playing. If you need help finding the percent of the audio that is over you can just divide the TimePosition by the TimeLength and times that by 100 (Position/Length * 100)