New account registration is temporarily disabled.

AUDIO RANDOMNESS HELP!

Posts

Pages: 1
Hello ! I would like to know if in ace it would be possible to start playing a bgm at a random point in the song? If this sere possible, i would be very happy yo. What do you guys think?
Marrend
Guardian of the Description Thread
21806
VX Ace, right? RIGHT?

I'm a bit of a newbie at scripting, but I found a function that might be useful:

Audio.bgm_play(filename[, volume[, pitch[, pos]]])

I think this can work as-is, though I'm not seeing a way to get the length of a BGM (for the random part).
Usually, to get the length of a linearly accessed file or stream, you seek to the end, record the position, then rewind back to the start.
Hey! Just realised that i never replied to this! A bit rude! Thanks for helps ill try it out! (yes vx ace)
Pages: 1