generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Game Design
Home Search
 

Re: Playing sounds in a certain area

Previous Thread :: Next Thread 
heirIoom is not online. heirIoom
Joined: 15 Jul 2012
Total Posts: 3775
24 Jun 2016 10:47 AM
Just quick question. I know theres a way to do this, as in when you pass through a part and music plays, But are there any more accurate methods so you can play music in certain areas? An example would be how open world RPG's have it to where you can leave a certain area in any direction and it plays the different types of music.


Report Abuse
iDominusU is not online. iDominusU
Joined: 07 Sep 2015
Total Posts: 137
24 Jun 2016 10:51 AM
Make a rather large cube, and set transparency to 1. Also make it to where people can walk through it, and add the music to that part. When they leave the cube, the music will become quieter. Hope this works! (:
Report Abuse
heirIoom is not online. heirIoom
Joined: 15 Jul 2012
Total Posts: 3775
24 Jun 2016 10:43 PM
^ Yes but I dont want the music to fade over time as the player gets farther from the parts. Also depending on how high a players volume is they could hear 2 or more sound blocks at once.


Report Abuse
FrazzIed is not online. FrazzIed
Joined: 12 Jun 2011
Total Posts: 288
24 Jun 2016 11:15 PM
Maybe try the Scripters forum. People there might be able to help you.
Report Abuse
SatanVIII is not online. SatanVIII
Joined: 08 May 2011
Total Posts: 2129
25 Jun 2016 12:19 AM
no you literally just do what dominus said and when you leave the brick you stop the music.


Report Abuse
Iliuminatis is not online. Iliuminatis
Joined: 30 Nov 2008
Total Posts: 1524
25 Jun 2016 02:21 AM
I already made the thing you're looking for:
https://www.roblox.com/games/9599540/Forest

A zone script that detects players in the area, plays music for them, once player is outside, music volume goes down and music is muted for that player.
Report Abuse
heirIoom is not online. heirIoom
Joined: 15 Jul 2012
Total Posts: 3775
25 Jun 2016 08:34 AM
@Sat
Ripped straight from the wiki:

3D Sound[edit]
3D Sounds are locational and are most commonly used for sound effects. A sound will be 3D if its parent is a part. 3D sounds have several behaviors:

Volume: The closer a player is to a 3D sound, the louder the sound will play for that player.
Stereo: If one side of a player is closer to the source of a 3D sound, the player's corresponding speaker will be louder.
Doppler Effect: If a 3D sound is approaching a player it will be heard at a higher pitch (and at a lower pitch if the sound is traveling away from the player).


Report Abuse
DeveloperCreations is not online. DeveloperCreations
Joined: 27 Jan 2013
Total Posts: 92
25 Jun 2016 08:37 AM
This was already answered for me:

https://forum.roblox.com/Forum/ShowPost.aspx?PostID=183747842


Report Abuse
heirIoom is not online. heirIoom
Joined: 15 Jul 2012
Total Posts: 3775
25 Jun 2016 09:44 AM
^ Er sorry that wasnt what I asked for. I know how to ply sounds locally and such, but I want to know instead of touching a part and playing a different sound, Is there a different (more accurate) method in which the player could leave a certain area in any direction and have the music change. 3d Method wouldnt work since its unpredictable how high the players volume is and so they could be halfway across the map and hear 5 songs at once.


Report Abuse
DeveloperCreations is not online. DeveloperCreations
Joined: 27 Jan 2013
Total Posts: 92
25 Jun 2016 09:46 AM
OHH, I can't help you there sorry.


Report Abuse
xXShadowPrimeXx is not online. xXShadowPrimeXx
Joined: 31 Jul 2010
Total Posts: 981
25 Jun 2016 10:13 AM
I know how to do it.



Report Abuse
SatanVIII is not online. SatanVIII
Joined: 08 May 2011
Total Posts: 2129
25 Jun 2016 10:17 AM
turn on FE so music only plays and stops for one character......


Report Abuse
heirIoom is not online. heirIoom
Joined: 15 Jul 2012
Total Posts: 3775
25 Jun 2016 10:18 AM
^ Not looking for someone who knows how to do it, just a basis for an idea. I've been doing a bit of thinking and I'm wondering that if a player is a certain distance from a part (Using Magnitude), then Music plays but if they get farther away then it stops. Only issue is how do I figure out the invisible range a lot more accurately than guessing.


Report Abuse
heirIoom is not online. heirIoom
Joined: 15 Jul 2012
Total Posts: 3775
25 Jun 2016 10:19 AM
@Sat
Sorry, meant for the guy above you. Also read the paragraph I wrote to Developer.


Report Abuse
SatanVIII is not online. SatanVIII
Joined: 08 May 2011
Total Posts: 2129
25 Jun 2016 10:21 AM
yes i read it i dont understand what your problem is with invisible bricks.


Report Abuse
xXShadowPrimeXx is not online. xXShadowPrimeXx
Joined: 31 Jul 2010
Total Posts: 981
25 Jun 2016 10:22 AM
Rude. If you want i'll make a demo for you


Report Abuse
xXShadowPrimeXx is not online. xXShadowPrimeXx
Joined: 31 Jul 2010
Total Posts: 981
25 Jun 2016 10:25 AM
@OP I'm not sure.. Try looking on the wiki.


Report Abuse
heirIoom is not online. heirIoom
Joined: 15 Jul 2012
Total Posts: 3775
25 Jun 2016 11:26 AM
@Sat
2 problems.
1. The farther the player gets from the brick the quieter the sound gets. Then if the player leaves the brick and enters a new area you now have 2 sounds overlapping each other, Since when you leave the Brick it just makes the sound fainter.

It also said on the wiki that its mainly used for sound effects in games.


Report Abuse
SatanVIII is not online. SatanVIII
Joined: 08 May 2011
Total Posts: 2129
25 Jun 2016 11:28 AM
for every problem theres a solution
make the sound local so only the player can hear it. then when they leave do a TouchEnded and stop the music so you dont have the unwanted sound








Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
25 Jun 2016 11:38 AM
You can follow the same concept of having different music play at different time of day.

Use the idea of parts to specify location.
But these parts DO NOT access the music directly.
Instead the parts change a variable in the player.

The music plays based on this variable.

Arrow shows player moving and C is City and S is Song
C1............. ->............ C2 .............-> ............C3
Play S1. Fade out,Fade in. Play S2. Fade out, Fade in. Play S3

Now you want to avoid the music switching rapidly because of fast zone switching.

So you have "dead zones" between each music area.
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
25 Jun 2016 11:39 AM
player.AREA.changed()
if player.AREA.Value = "DeadZone" then
-- fade out
elseif player.AREA.Value = "Zone1" then
-- fade into music 1
elseif player.AREA.Value = "Zone2" then
-- fade into music 2
end
end
Report Abuse
dudefun1234 is not online. dudefun1234
Joined: 21 Jul 2013
Total Posts: 3038
25 Jun 2016 01:19 PM
Just like that other guy said, make a cube and set it transparency 1.

HERE IS THE CATCH

Have all the sounds in the players PlayerGui.
When the player goes to a different block, stop all sounds, and play the one that is designated for that area.
By putting the sound in the PLayersGui, only that player will hear it.
Report Abuse
Pumpsekkar is not online. Pumpsekkar
Joined: 19 Jun 2014
Total Posts: 11
26 Nov 2017 05:58 PM
Could u make me o ne I need o ne very much
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image