01-11-2011, 09:02 PM
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 ^^
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 ^^