The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Playing different music in different areas
Tony32 Offline
Junior Member

Posts: 26
Threads: 2
Joined: Jan 2011
Reputation: 0
#1
Playing different music in different areas

Hello again, yet I've stumbled on another problem. This time I'm wondering how the music playing really works for different rooms. I've read that the built in sound in the level editor is bad for this task, so I guess I'll have to do it using scripts.

How is it supposed to work? Create one area for each room and play sounds if they are in it? How am I supposed to loop the sounds while the player is inside the area? Also, which function to play the music should I use? PlayGuiSound or PlayMusic?
Ex.
If (insideKitchen)
play sound X

If(InsideHallway)
play sound Y

Is it supposed to be like that or have I got it all wrong? x)

Thanks in advance ^^
01-11-2011, 09:02 PM
Find


Messages In This Thread
Playing different music in different areas - by Tony32 - 01-11-2011, 09:02 PM



Users browsing this thread: 1 Guest(s)