1 decade ago by igr
				Hi!
I am trying to animate to elements on the background. I followed the method described in the docs placing the following code in the main.js:
What happens then is that only one of those two gets animated (the second one). And this is logical. But how to get animated both?
Thank you!
		I am trying to animate to elements on the background. I followed the method described in the docs placing the following code in the main.js:
var vent = new ig.AnimationSheet( 'media/FanSheet-wCover.png', 80, 80 );
	this.backgroundAnims = {
	'media/FanSheet-wCover.png': {
        0: new ig.Animation( vent, 0.1, [0,1,2] )
        
    }
};
		
	
var light = new ig.AnimationSheet( 'media/GlowWarnLights_Sheet_v2.png', 240, 240 );
	this.backgroundAnims = {
	'media/GlowWarnLights_Sheet_v2.png': {
        0: new ig.Animation( light, 0.1, [0,1,2,3,4,5] )
       
    }
};
What happens then is that only one of those two gets animated (the second one). And this is logical. But how to get animated both?
Thank you!
