Status
Not open for further replies.

CynicSyndrome

Veteran
Veteran
Joined
May 4, 2017
Messages
57
Reaction score
39
First Language
English
Primarily Uses
RMMV
◆Script:AudioManager.playBgm({ name: $gameVariables.value(1309), volume: $gameVariables.value(1310), pitch: $gameVariables.value(1311), pan: $gameVariables.value(1312)});

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.
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
858
First Language
English
Primarily Uses
RMMV
@CynicSyndrome Sure! The second argument of the 'playBgm' function is the position the music should start at.

Code:
// Start 'Battle3' BGM at 10 seconds
AudioManager.playBgm({ name: 'Battle3', volume: 50, pitch: 100, pan: 0, pos: 10 }, 10);
 

CynicSyndrome

Veteran
Veteran
Joined
May 4, 2017
Messages
57
Reaction score
39
First Language
English
Primarily Uses
RMMV
Thank you!!!! I knew it was something like this but couldn't get it right! You just made my day!!
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
8,366
Reaction score
5,529
First Language
Dutch
Primarily Uses
RMXP

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

I've been working on something on and off for a few years now, and I've been reluctant to share any details on the project before I had anything playable because I did not want to generate hype only for the project to go back on hiatus. That being said I believe what I'm working on is very unique and pushes the boundaries of what RPG Maker projects can be. Bold claims, I know but just wait.
Happy Mother's Day to all the moms :)
Create Anime Art w/ AI, Tall Sprites with Aurora, Customize Variable Display | RPG Maker News #34

[My favorite slow moving track I've made so far]
dd_airport2.jpgdd_combat.jpg
dd_town.jpg
I did an experiment to try to solve the art style problem between RTP and 3D models.
But, it feels this grimdark world is going to end even faster. :kaoswt2:

Forum statistics

Threads
111,192
Messages
1,059,157
Members
144,439
Latest member
lyky
Top