How to make sound/music to stop ?

Talk about making games.

How to make sound/music to stop ?

Postby bat78 » Sat Jun 30, 2012 4:03 pm

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
itemsbag.png (17.21 KiB) Viewed 1657 times
The future of "Game-Editor" here
User avatar
bat78
 
Posts: 816
Joined: Sun Dec 14, 2008 9:13 pm
Location: Bulgaria, Sofia
Score: 88 Give a positive score

Re: How to make sound/music to stop ?

Postby skydereign » Sat Jun 30, 2012 4:19 pm

Sound is handled by gE functions, so you should look here. http://game-editor.com/docs/script_reference.htm
stopSound 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).
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: How to make sound/music to stop ?

Postby bat78 » Sat Jun 30, 2012 4:32 pm

it...it works
The future of "Game-Editor" here
User avatar
bat78
 
Posts: 816
Joined: Sun Dec 14, 2008 9:13 pm
Location: Bulgaria, Sofia
Score: 88 Give a positive score

Re: How to make sound/music to stop ?

Postby Fojam » Sat Jun 30, 2012 6:53 pm

I just use stopSound(1) and that seems to work for music
CLICK TO GIVE ME POINTS

My Latest Projects:
Super Smash Bros: viewtopic.php?f=6&t=12307 PLEASE help by making sprites!
User avatar
Fojam
 
Posts: 513
Joined: Thu Mar 19, 2009 10:02 pm
Location: under your bed!!!
Score: 69 Give a positive score

Re: How to make sound/music to stop ?

Postby skydereign » Sat Jun 30, 2012 8:12 pm

Ok, that makes sense. I didn't realize PlaySound2 will always put the music in channel 1. So, stopSound can also stop music.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: How to make sound/music to stop ?

Postby bat78 » Sat Jun 30, 2012 8:26 pm

I make music 1 and sound 2..to make difference is stopping.
In pawn c++ chanels can be created..i dont know for here.
The future of "Game-Editor" here
User avatar
bat78
 
Posts: 816
Joined: Sun Dec 14, 2008 9:13 pm
Location: Bulgaria, Sofia
Score: 88 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest