Help - Search - Members - Calendar
Full Version: FMOD EX Audio Script Help.
RPG RPG Revolution Forums > Scripting > Script Development and Support > RGSS
itsmeyouidiot
I'm using an FMOD Ex Audio Script to create a loop point for battle music, but I need to know how to call the script each time a specific battle music is played.

I'm quite new to ruby scripting and programming in general, so I'd appreciate it if anybody can help me out here!
itsmeyouidiot
QUOTE (itsmeyouidiot @ May 24 2011, 11:05 PM) *
I'm using an FMOD Ex Audio Script to create a loop point for battle music, but I need to know how to call the script each time a specific battle music is played.

I'm quite new to ruby scripting and programming in general, so I'd appreciate it if anybody can help me out here!


Okay, I've figured out that the code to set loop points is :
CODE
FMod.bgm_set_loop_points(first, second)
and the code to call the sound is:
CODE
def self.bgm_play(name, volume, pitch, position = 0, looping = true)


But I still don't know where or how to use either of them.

Can someone please look at the script and help me out here?
itsmeyouidiot
Nevermind.
itsmeyouidiot
Alright, I'm having trouble getting the script to play a different looped track with different loop points based on the type of the encounter. (Boss fight, normal battle, et cetera.)

Does anyone know how to do this?
Legacy
Please don't bump a topic before 32 hours, and quad-triple post... This is a forum, be patient.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.