Page 2 of 2

Re: How to make custom sound ?

Posted: Wed Oct 29, 2014 5:57 pm
by Lark
A call to playSound will play a sound basically at the party's location. But playSoundAt will play the same sound at a specific location. So if you want the sound to come from the party's left, through a specific door, or et cetera, you can use playSoundAt instead. The format is simply playSoundAt(<sound name>, <level>, <x-coordinate>, <y-coordinate>).

Although there are lots of workable examples around, if you add playSoundAt("wizard_laugh", c.go.level, c.go.x - 3, c.go.y - 3) to my script at viewtopic.php?f=22&t=7881, then walk the player onto the pressure plate, walls will surround the party and a laugh will come from one side. Change the "- 3" to a "+ 3" and the sound will come from the other side. Surround sound is even better if you have it on your PC.

Re: How to make custom sound ?

Posted: Wed Oct 29, 2014 6:16 pm
by Rougecorne
Wow !
It's great ! :D

Thank you :)

Re: How to make custom sound ?

Posted: Sun Nov 02, 2014 3:06 am
by Drakkan
Lark wrote:A call to playSound will play a sound basically at the party's location. But playSoundAt will play the same sound at a specific location. So if you want the sound to come from the party's left, through a specific door, or et cetera, you can use playSoundAt instead. The format is simply playSoundAt(<sound name>, <level>, <x-coordinate>, <y-coordinate>).

Although there are lots of workable examples around, if you add playSoundAt("wizard_laugh", c.go.level, c.go.x - 3, c.go.y - 3) to my script at viewtopic.php?f=22&t=7881, then walk the player onto the pressure plate, walls will surround the party and a laugh will come from one side. Change the "- 3" to a "+ 3" and the sound will come from the other side. Surround sound is even better if you have it on your PC.
just want tahnk you for simple and nice tutorials for custom sound / music. thanks