The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: shintashi on May 30, 2010, 02:11:19 AM

Title: Conditional x OR y ?
Post by: shintashi on May 30, 2010, 02:11:19 AM
I'm trying to set up a mecha effect to play sound files only when I'm using the directional keys, and want to make sure the sounds don't overlap or fail to stop when keys aren't being pressed,

so I'm wondering, is there a way to do Conditional: The Down button is being pressed |or| The Up button...
etc. so all four keys are checked?
Title: Re: Conditional x OR y ?
Post by: Zylos on May 30, 2010, 02:15:57 AM
Why not just use the else and throw in another conditional branch for another direction, and repeat until all four directions are covered?
Title: Re: Conditional x OR y ?
Post by: Nessiah on May 30, 2010, 03:49:13 AM
RMXP...
By any chance you are using an input script or are you just using the default?
Title: Re: Conditional x OR y ?
Post by: shintashi on May 30, 2010, 06:28:19 AM
i've changed my mind on using sound effects for a walking mecha. The timing sequence is a nightmare without your own recording studio software and the parallel loop thing causes severe problems.
Title: Re: Conditional x OR y ?
Post by: modern algebra on May 30, 2010, 12:58:23 PM
Have you considered using a footstep sounds script?
Title: Re: Conditional x OR y ?
Post by: shintashi on May 31, 2010, 06:13:27 AM
Quote from: modern algebra on May 30, 2010, 12:58:23 PM
Have you considered using a footstep sounds script?

never heard of such a thing. I just thought a giant robot should make noise when moving and pulled an open source sound bite, but can't get the 3 second clip (not the best) to line up right when walking and it sometimes overlaps itself when changing directions.
Title: Re: Conditional x OR y ?
Post by: modern algebra on May 31, 2010, 12:21:17 PM
Here: http://rpgmakerid.forumotion.net/rmxp-scripts-f12/xprei-footstep-script-t603.htm

There's probably an English translation somewhere. Anyway - change the sound for each terrain to the mecha sound you want - set "PS = 1" to the switch you want to use to turn on mecha mode. That way, the sound effects will only play for the player when he is in a mecha. You can also differentiate by terrain tag if you mix up the sounds in the TAG section.
Title: Re: Conditional x OR y ?
Post by: shintashi on May 31, 2010, 04:48:47 PM
Quote from: modern algebra on May 31, 2010, 12:21:17 PM
Here: http://rpgmakerid.forumotion.net/rmxp-scripts-f12/xprei-footstep-script-t603.htm

There's probably an English translation somewhere. Anyway - change the sound for each terrain to the mecha sound you want - set "PS = 1" to the switch you want to use to turn on mecha mode. That way, the sound effects will only play for the player when he is in a mecha. You can also differentiate by terrain tag if you mix up the sounds in the TAG section.

it's Indonesian. http://www.stars21.com/translator/indonesian_to_english.html


and a bit over my head at this point. Perhaps someone with more sound and script experience can make use of it. So I made a screen shot of the translation for anyone who wants it.

[spoiler](https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg241.imageshack.us%2Fimg241%2F2376%2Fsoundwalkingscripttrnsl.png&hash=11b153f4a76d392fb14b8159362b839bf95066cb) (http://img241.imageshack.us/i/soundwalkingscripttrnsl.png/)
[/spoiler]
Title: Re: Conditional x OR y ?
Post by: Mjustin on June 11, 2010, 06:14:42 PM
You could import the mech's walking sound as a BGS instead of a sound effect.