Main Menu
  • Welcome to The RPG Maker Resource Kit.

Conditional x OR y ?

Started by shintashi, May 30, 2010, 02:11:19 AM

0 Members and 1 Guest are viewing this topic.

shintashi

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?

Zylos

Why not just use the else and throw in another conditional branch for another direction, and repeat until all four directions are covered?




Nessiah

RMXP...
By any chance you are using an input script or are you just using the default?


shintashi

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.

modern algebra

Have you considered using a footstep sounds script?

shintashi

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.

modern algebra

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.

shintashi

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]
[/spoiler]

Mjustin

You could import the mech's walking sound as a BGS instead of a sound effect.