Xyphien Forums

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

can you start BGM at a desired time index??

CynicSyndrome

Towns Guard
Xy$
0.36
◆Script:AudioManager.playBgm({ name: "Town4", volume: 100, pitch: 100, pan: 0})

I am using this above code to designate BGM to play and settings to use. it works 100% perfectly, but now I need a way to specify a starting point. is it possible to modify this to incorporate a starting position? I have been experimenting with this for some time but have had zero success.
 
Last edited:

CynicSyndrome

Towns Guard
Xy$
0.36
I figured it out, to start 10 seconds in: ◆Script:AudioManager.playBgm({ name: "Town4", volume: 100, pitch: 100, pan: 0, pos: 10}, 10)
 
Top