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 Jon123

I have this block of code and read that if only one sound is in the tracks array, it will loop forever. However, this doesn't happen. Any ideas?

var music = ig.music;
music.add("media/sounds/robotica-electronica.*");
music.volume = 1.0;
music.play();

1 decade ago by stillen

Have you friend this:
http://impactjs.com/forums/code/quickn-dirty-sound-plugin


I don't think looping sound in supported without a plugin.

1 decade ago by Jon123

What does .loop do then?

 loop/><br />
<br />
<br />
 I tried this plugin but the continue method doesn't seem to work.. I added the sound and included the plugin but it only plays once, even with .continue being in the update method			</div>
		</div>
			<div class=

1 decade ago by Jon123

Sorry that was meant to be a link...

loop

1 decade ago by Silent

I may be wrong on this one, but you could somehow add the same track twice to the tracklist and set loop to true, that way it won't be ignored.
Page 1 of 1
« first « previous next › last »