a (maybe silly) question:
i want to generate a sound. in the soun example i noticed, that every time you eg. write
sound(SOUND_PICKUP)
a RANDOM pickup sound is played. can i somehow influence this? because i would like to play a specific sound every time, and the same. please help!
John
January 10, 2012, 9:02am
2
Just use sound(SOUND_PICKUP, seed) where seed is the number used to generate the sound
thank you! but is there any cind of directory?
sim
January 10, 2012, 9:30am
4
So, for example, sound(SOUND_PICKUP, 1234).
There’s a really cool feature coming in 1.3 that addresses this.
Edit: @Maxiking16 no directory because the sounds are randomly generated. However we’ve made it much easier to “audition” them in the next update.
Drablos
January 10, 2012, 12:37pm
5
In the meantime, here’s some code I threw together for myself to test out sounds. Just copy and paste it into a new project, and you’ll have a very basic soundtesting app.
http://pastebin.com/pVyzLjJ5
(Uses the awesome and hopefully soon equally obsolete font code by Bortels of course. )
Awesome! Thank you! Great