Number of sound-replays

Got a cool idea that should be in R'n'D? Let's hear it!

Moderators: Flumminator, Zomis

Post Reply
richard
Posts: 199
Joined: Fri Jun 18, 2004 9:00 pm

Number of sound-replays

Post 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:
User avatar
Holger
Site Admin
Posts: 4081
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger »

Hmm, not really sure what you mean...
Yoshi348
Posts: 132
Joined: Fri Jun 18, 2004 8:27 pm
Location: My own little world (California)

Post 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".
richard
Posts: 199
Joined: Fri Jun 18, 2004 9:00 pm

Post 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 !
User avatar
Holger
Site Admin
Posts: 4081
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post 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.)
Post Reply