How to make sound/music to stop ?
Posted:
Sat Jun 30, 2012 4:03 pm
by bat78
I was thingking about variables but i saw that cannot be maked like scripting of Pawn C++
How to make sound or music to stop
- itemsbag.png (17.21 KiB) Viewed 1653 times
Re: How to make sound/music to stop ?
Posted:
Sat Jun 30, 2012 4:19 pm
by skydereign
Sound is handled by gE functions, so you should look here.
http://game-editor.com/docs/script_reference.htmstopSound can be used to stop your game sounds, but currently you have to have a silent music file to stop the music (and call that file with PlaySound2).
Re: How to make sound/music to stop ?
Posted:
Sat Jun 30, 2012 6:53 pm
by Fojam
I just use stopSound(1) and that seems to work for music
Re: How to make sound/music to stop ?
Posted:
Sat Jun 30, 2012 8:12 pm
by skydereign
Ok, that makes sense. I didn't realize PlaySound2 will always put the music in channel 1. So, stopSound can also stop music.
Re: How to make sound/music to stop ?
Posted:
Sat Jun 30, 2012 8:26 pm
by bat78
I make music 1 and sound 2..to make difference is stopping.
In pawn c++ chanels can be created..i dont know for here.