View Full Version: Background sound

lassie >>Technical support >>Background sound


<< Prev | Next >>

NigeC- 11-27-2007
Background sound
I'm trying to find a way to have music playing that doesn't restart as you change rooms.. it also need to turn off after you leave the main area you can do this easily just by having the sound as an inventory item, however even tho you removeinvenitem as you exit the area the music will keep playing! Also you get a blank square in inventory So i messed about and created a "Door" switch/button that exits the room with the code: on (release) { _root.TIMe.removeInvenItem('peanuts', 1); _root.TIMe.changeRoom('hall1', 'lobby', 4, null, null); stopAllSounds(); _root.runActions(); } Which stops the sound then when you re enter it doesn't turn on lol so i added a play() to the inven item and it'll play again Is there a way to call the sound from the menu rather than the inventory, or hide the blank square that appears in inven I know your busy Greg so just whenever you get time! If you want to see the door FLA its here: http://www.nigecstudios.co.uk/games/but2.rar (theres loads of cr*p that isn't used) it also has animation on "over" to make the door open, the character walks to it and a sound

bigmac- 11-28-2007

Nige, why not just load in a jukebox clip? You can create objects within the framework of the the Lassie player... reference the DOM diagram to find a depth that is not in use on root. Then... var jb:MovieClip = _root.createEmptyMovieClip("jukebox_mc", depth); jb.loadMovie(url); Now, you will of course have to wait for it to load before you can control it. But you could put all kinds of interfacing commands into it.

NigeC- 11-28-2007

thanks Greg.. is there an FLA for the player?

bigmac- 11-29-2007

...no. You have to build it!! ;) (after all, you're the one who's hacking the engine) :D

NigeC- 11-29-2007

I'd hardly call it hacking lol, more like stumbling about in the dark and accidentally finding a light switch... I'm just trying sh*t while I'm waiting for the characters, the chances are it'll stay as you intended

SeanCyrusTowel- 11-30-2007

I'd hardly call it hacking lol, more like stumbling about in the dark and accidentally finding a light switch... You aren't making Maniac Mansion are you Nige? ;-)

NigeC- 12-01-2007

I don't know what I'm making anymore lol

bigmac- 12-01-2007

I hated those parts in Maniac Mansion... I always found it more frustrating that fun to be hunting for the light switch in a dark room.

Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.