Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a sound play at a other length rather than the beginning?

Asked by 5 years ago

I'll try my best to explain, I want to make it so a sound (yes, the class sound) would play at 5 seconds or so? What I'm trying to do is skip a length behind a audio like the audio would start at something like 0:30 and the parts before 0:30 would be skipped and not be heard, therefore making the sound shorter? I have a game that plays music, but when the music stops (it sets playing to false and uses sound:stop()) it would be at the same position, I can just use that, but I want it to start right away or something, could also use volume but still no. I can't make this question more understandable.

2 answers

Log in to vote
0
Answered by 5 years ago

This is actually really easy to do. If you look into the properties of the Sound, there is some called "TimePosition" you can set the amount of second you want it to start at. If this answered your question, please mark it as answered :)

Have fun Logan!

Ad
Log in to vote
0
Answered by
dekkeda 30
5 years ago

I understand you want to start music at 0:30 instead of 0:00 Have you tried the property TimePosition?

Answer this question