Hi. So i have a soundtrack and i want the enemy to transform into another form at the same time as soundtrack gets to the best part. Is there any way to do that?
Enemy transformation in exact time
RPG Maker MV SupportDue to the nature of RPG Maker as a turn-based battle system, not easily.
What you'd probably want to do instead is split the song into two pieces, and then switch to the new song after a certain number of turns, or at half health.
You could use a plugin to run parallel events during battle.
In the parallel event, count frames (60 per second) until you get to the moment in the soundtrack and transform the enemy.
In the parallel event, count frames (60 per second) until you get to the moment in the soundtrack and transform the enemy.
Yes, you could do what ATT_Turan said with this plugin. The plugin file has English instructions.
However this might result in the enemy transforming at a strange time, like in the middle of an attack.
However this might result in the enemy transforming at a strange time, like in the middle of an attack.
I believe you should be able to set the position of the audio with:
where num is the number of samples in the audio you want it to start at, I think (you'll have to double check if it is a real-time update or if you have to stop the audio and restart).
You can also do a console.log with just AudioManager._currentBgm.pos to get a ballpark number while the audio is playing. Preferably, you could load it up in Audacity and find the exact position of the time sample.
JavaScript:
AudioManager._currentBgm.pos = num
where num is the number of samples in the audio you want it to start at, I think (you'll have to double check if it is a real-time update or if you have to stop the audio and restart).
You can also do a console.log with just AudioManager._currentBgm.pos to get a ballpark number while the audio is playing. Preferably, you could load it up in Audacity and find the exact position of the time sample.
The OP appears to be asking the opposite of this - they want something to happen at a specific time in the natural progression of their soundtrack, not to make the soundtrack jump to a time when something happens.
Ah, thanks for clarifying. I was thinking about Mega Man how it changes when the boss gets low health while typing this and got a bit carried away haha. Yeah, a wait time would be best.
In that case, I would get the time count from Audacity and then set a parallel command with the wait time accordingly as you suggested.
Maybe these scripts could help?
forums.rpgmakerweb.com
I've used the second script to replicate that dynamic bazaar music from Zelda: Skyword Sword.
Edit: Oh, sorry, I thought I was in a VXA forum. Good luck!
Condition Battle Song
Hello RPG Maker Community. I am DevilKnight new member in this great community. I want to thanks Mr.db3 for tutorial video that really helped me to learn the basic of scripting. I made this script of battle song. Also, I will be more than happy for any feedback. So, Let's move to the...
forums.rpgmakerweb.com
I've used the second script to replicate that dynamic bazaar music from Zelda: Skyword Sword.
Edit: Oh, sorry, I thought I was in a VXA forum. Good luck!
Could you tell me please how to count frames?
Edit: Nevermind, i figured out
Thank you all so much for help, you're great! I did it. Have a nice day.
This thread is being closed due to being solved. If you need it reopened, report it to let us know why. Thank you!
Original thread: https://forums.rpgmakerweb.com/threads/enemy-transformation-in-exact-time.165431/