Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by 80bit

Is it possible to have multiple instances of music playing at once (different source files)?

1 decade ago by dominic

Yes. By default one instance of ig.Music is created at ig.music (lowercase), but you can always create more instances if you need. E.g.:

// in your games init() function:
ig.music.add( 'track1.ogg' );

ig.musicSecondary = new ig.Music();
ig.musicSecondary.add( 'track2.ogg' );

// play both
ig.music.play();
ig.musicSecondary.play();

1 decade ago by 80bit

How doing some kind of sound fadeIn? Any plans for a function in sound.js?

1 decade ago by dominic

There&039;s a <1> method for music... you could hack in a #.fadeIn() method as well.

Put it on my todo list for the next version :)
Page 1 of 1
« first « previous next › last »