Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Polraudio

Start another song after?

Question

Is there any scripts or any way i can start another song right after a song is done playing?

Im going to have a song with an epic opening and once that opening is over the song will end and go to the other song seamless and start to loop so the player dont even know the song changed.

 

It needs to work across 6 different maps(Airship and all the maps inside of the airship).

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

RGSS doesn't support seeking or even getting the current position of playback, which really sucks.

I remember there was a script back in the day someone made that kinda gave the functionality of it, but it was bugged to say the least, and I don't know if it had the accuracy you are looking for,

 

One idea you could do, although it is a bit of a pain in the ass, is use Win32API to make calls to the media player using all the "mci_sendstring" functions. I made a pretty good MCI player in C# before, but I dunno how it would work with Win32API using Ruby.

 

Aside from that, the only really viable option I can think of is timing the exact frame the song needs changed at, and using the normal calls, which is totally meh.

Edited by ForeverZer0

Share this post


Link to post
Share on other sites
  • 0

If your song is a MIDI file then you can use the 111 control. Put the intro and the main loop in the same file, then add a control 111 event right when the main loop starts. RGSS will then know it has to go back to that precise point whenever the song is finished.

Share this post


Link to post
Share on other sites
  • 0

Use a MIDI editor like Cubase. Insert a "control" event at the right place and set its main value to 111.

Share this post


Link to post
Share on other sites
  • 0

Good idea using the MIDI.

 

If you don't want to have to download the 4-6 GB for Cubase and go through the whol cracking thing, you can also use Anvil Studio.

Its only like 2.6 MB and completely free.

 

http://www.anvilstudio.com/

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...