Hi, I want to make a battle in which you have to dodge in synchro with the music but when there's lag the music gets unsynchronized, also if you're running in a slower pc, the game will go slower than the music. Is there a way to make a BGM synchronized to the game? Like, a second from the BGM equals 60 frames from the game. If the game goes slower, the music goes slower.
Can BGM be in synchro with frames?
RPG Maker VXAce Supportno.
there's just too much happening in the engine in between frames, to get an accurate sync.
the movement of the events is almost 100% sequential: events more from 'here' to 'there', one step at a time.
there must be a "here" to start from, there must be a "there" provided by the process to start counting to, and the process must be ready for it to start counting.
WHEN the event gets "there", it then becomes the new start point.
for it to be synced to uneven beats, the position of the event must be "this, at this time" disregarding increments (speed), which means reworking the count to run even more "behind the scenes", which would make other processes conflict with that, potentially adding more lag.
there are rhythm plugins, but IDK if they're for Ace or MV.
there's just too much happening in the engine in between frames, to get an accurate sync.
the movement of the events is almost 100% sequential: events more from 'here' to 'there', one step at a time.
there must be a "here" to start from, there must be a "there" provided by the process to start counting to, and the process must be ready for it to start counting.
WHEN the event gets "there", it then becomes the new start point.
for it to be synced to uneven beats, the position of the event must be "this, at this time" disregarding increments (speed), which means reworking the count to run even more "behind the scenes", which would make other processes conflict with that, potentially adding more lag.
there are rhythm plugins, but IDK if they're for Ace or MV.
You'll have to do your part to make sure the game doesn't have any inherent lag.
That's why games have minimum system requirements. You'll have to tell players "Your PC has to be this good in order to play the game the right way."
I guess you could try cutting the music into beats that play along a line of wait commands, it would mean that the player wouldn't have smooth UI/Character movement, although that could be a bonus as the UI/Chacter movement would be synced to the beat as well, and you can always turn it off outside of battle.
It is not completely impossible. But you'll need 3rd party music player because vx/vxa doesn't provide a method to get music positions.
For example, this plugin use winamp.dll
forums.rpgmakerweb.com
It is possible to have a feature that get current track's position.
Once you know the position of the music track, you can adjust your code to match it.
For example, this plugin use winamp.dll
Extended Music Script 3.5
Extended Music Script 3.5 Introduction This script allows you to play music formats like psf, spc, mod, it, etc in your game, just like mp3 or midi. Features New Features: - Script compatible with RPG Maker VX Ace I mostly rewrote the code that's indented. Everything else was written...
forums.rpgmakerweb.com
It is possible to have a feature that get current track's position.
Once you know the position of the music track, you can adjust your code to match it.
I could try that, thank ya.
The idea I had (that the music doesn't sound so bad) is adding the sound of every single piano note in the SoundEffects folder and then creating the music inside the game itself with an event.
But that makes the SE have a whole awful lot of files and it also makes the songs limited because they can only be made with piano, so I wanted to know if there's a more comfy way.
Sounds interesting. So if I add that plugin I will have the feature or something? And how could I get the position of the music?
It looks like there is a function called getoutputtime.
I haven't tried but it shouldn't return current track's play time.
I haven't tried but it shouldn't return current track's play time.
Original thread: https://forums.rpgmakerweb.com/threads/can-bgm-be-in-synchro-with-frames.171961/