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
.
.
.
.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