Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Sign in to follow this  
DarkDrai

Cool BGM idea in the works.

Question

Alright, so I'm a total n00b to scripting, and no matter what I try, I can't seem to get a simple script to function without getting an error.

 

I want to use a script to play a BGM. I'm not not talking about some crazy CBS, or anything, either. I want to call a script in an event and use that script to play a BGM. Basically, I'm just trying to get used to scripting, and I can't seem to figure this out.

 

I've got an awesome idea for a system of BGM music where there are two (or more) tracks playing at once, and it switches between them so that it sounds like the music is changing without losing tempo. But I can't really get anywhere if I can't play a single track. I also realize that I need to do some restructuring of the game's data structures before I can really get my idea to work, but I at least want to get this simple problem fixed...

 

Thanks for your help.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Audio.bgm_play(name, volume, pitch)

How do I denote which file to play? I have this so far:

 

Audio.bgm_play("/Audio/BGM/QuietForest_Soft", 100, 100)

 

It's not working. I keep getting syntax errors. If I take out the volume and pitch parts, it gives me an argument error (1 of 0). And if I take out the bgm name, it gives me another argument error (0 of 1). What am I doing wrong? >.<

 

QuietForest_Soft.wav is the file.

Share this post


Link to post
Share on other sites
  • 0

Well, wouldn't it be easier to just use windows movie maker and insert the two songs. Then, you can not only overlap the songs, but you can make it so one fades out, while the other fades in. Next, save the video and go to http://www.mediaconverter.org/

 

You can then convert the file to a sound file and use it in your game, and you're done! Also, if you're interested in learning scripting, head over to the RMXP Training Center.

 

 

Good luck on your game! :alright:

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...