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 dbarcena

I'm loading a sound and just play with it 2 or 3 times

.
.
.
.defines(function(){

MyGame = ig.Game.extend({

// Load a font
font: new ig.Font( 'media/04b03.font.png' ),

snd_test: new ig.Sound('media/snd/test.ogg'),

.
.
.

and I reproduce every 100ms (I tested each 1sg)

update: function() {
this.parent();
.
.
.
if( this.timSnd.delta()>=0 ){
this.snd_test.play();
timSnd.set(0.1);
.
.
.

Anyway, sounds 3 or 4 times and the sound stops playing. To fix performed a CTRL + R to reload the page again.

I was unable to test it on I.Explorer impact.js fail on line 405.
Any annotation? thanks

1 decade ago by dbarcena

If I load the page as file:/ / works correctly and by using the page as http:// server.py fails.

1 decade ago by dbarcena

Solved using XAMPP instead of server.py.
Page 1 of 1
« first « previous next › last »