Author Topic: Play Audio from another folder?  (Read 3332 times)

0 Members and 1 Guest are viewing this topic.

Kirroha

  • 僕はとてもきれいな人だよ!
  • *
  • Tier 7
  • **
  • Posts: 4596
  • Gender: Female
  • ... or so I heard.
  • Current Mood: cheerful cheerful
Play Audio from another folder?
« on: July 03, 2011, 02:37:23 AM »
I tried using this:

Audio.bgm_play
("Audio/VO/GuardP_0001")

After I put that audio in the respective folder, but it kept turning up as an error. Is there anything I can do?

Sarkilas

  • *
  • Tier 6
  • **
  • Posts: 429
  • Gender: Male
  • That guy
  • Current Mood: creative creative
Re: Play Audio from another folder?
« Reply #1 on: July 03, 2011, 07:57:44 AM »
Works fine for me, assuming you don't have a line break after the method call. Should be:

Audio.bgm_play("Audio/VO/GuardP_0001")

Need scripting help? Toss me a PM and I'll see what I can do.
Also able to help with anything RMXP related. Please do not hesitate to ask.

Kirroha

  • 僕はとてもきれいな人だよ!
  • *
  • Tier 7
  • **
  • Posts: 4596
  • Gender: Female
  • ... or so I heard.
  • Current Mood: cheerful cheerful
Re: Play Audio from another folder?
« Reply #2 on: July 03, 2011, 10:31:08 AM »
I can't seem to remove the line break, though. It's too long. /noob.

Sarkilas

  • *
  • Tier 6
  • **
  • Posts: 429
  • Gender: Male
  • That guy
  • Current Mood: creative creative
Re: Play Audio from another folder?
« Reply #3 on: July 03, 2011, 10:46:50 AM »
You are doing this in a script event call? If that's the case, you'd need to do it like this:
Code: [Select]
m="Audio/VO/GuardP_0001"
Audio.bgm_play(m)

Need scripting help? Toss me a PM and I'll see what I can do.
Also able to help with anything RMXP related. Please do not hesitate to ask.

Kirroha

  • 僕はとてもきれいな人だよ!
  • *
  • Tier 7
  • **
  • Posts: 4596
  • Gender: Female
  • ... or so I heard.
  • Current Mood: cheerful cheerful
Re: Play Audio from another folder?
« Reply #4 on: July 03, 2011, 10:58:51 AM »
Yep, it works now. Thanks, Sarkilas! :)