Page 1 of 1

Number of sound-replays

Posted: Mon Jul 12, 2004 11:24 am
by richard
The number of sound replays for a falling artwork rock could be 2. Means, that the sound will 2 times played "completely" during the rock falls. (In loop it would only play it 2 times until it stops falling).

The code could be like:

rock.falling: wind.wav
rock.falling.re: 2
rock.falling.mode_loop: true

The "re" could be the "replay" of the sound. Another code is good too, just tell me if it would be there.

Anyways, you can make with that easily the "rock.creating" wav... or not ? :wink:

Posted: Wed Jul 28, 2004 8:52 am
by Holger
Hmm, not really sure what you mean...

Posted: Wed Jul 28, 2004 8:09 pm
by Yoshi348
I think he means, instead of looping the sound effect either "once" or "forever", it could be set to "twice" or "thrice" or "seventy-two times".

Posted: Wed Jul 28, 2004 8:28 pm
by richard
If that code is there:

rock.impact: abc.wav
rock.impact.re: 3

It plays 3 times the sound abc.wav if it impacts. Easy !

Posted: Thu Jul 29, 2004 8:56 pm
by Holger
OK, now I know what you mean.

It's not a bad idea, I think. (Loop sound mode could be completely replaced by setting the number of sound repeats to zero or something like that.)