RoblotXRB
|
  |
| Joined: 16 Nov 2014 |
| Total Posts: 2068 |
|
|
| 13 Jan 2017 04:31 AM |
I know how to make a on touch local sound for my RPG game. So the theme changes. So if I'm in like a peaceful land, the ambient will be peace. But If I enter a Hellzone. It'll be firey ambient, but only applies for who touched the brick. The problem is. I don't know how to stop previous local sounds from playing. HALP
|
|
|
| Report Abuse |
|
|
RoblotXRB
|
  |
| Joined: 16 Nov 2014 |
| Total Posts: 2068 |
|
|
| 13 Jan 2017 04:32 AM |
For E.G
Peace village: Theme is peaceful
-Touches a brick/level door to a Goblin Cave- -Music turns into intense drumming, but the peaceful music is mixed in-
|
|
|
| Report Abuse |
|
|
Lucas_Lua
|
  |
| Joined: 18 Jun 2008 |
| Total Posts: 7521 |
|
|
| 13 Jan 2017 04:34 AM |
You have to call :Stop() on the sound that is still playing. Deleting it would also work.
I would use an object value or something like that to keep track of what music is currently playing, so that different scripts and sounds have to check the value to watch for overlap. |
|
|
| Report Abuse |
|
|
RoblotXRB
|
  |
| Joined: 16 Nov 2014 |
| Total Posts: 2068 |
|
|
| 13 Jan 2017 04:44 AM |
Cause the only one that can hear music is the one that touch the brick. So is the stop command gonna stop for us all. I need one working for local sounds
|
|
|
| Report Abuse |
|
|