1 decade ago by fulvio
In my
This is what I have so far. It&
It doesn't seem to be working at all, I don't see any animations using the first level tile.
main.js I&039;m trying to animate the first tile of my tileset, which is #160x208 in dimensions.This is what I have so far. It&
039;s before the #this.loadLevel() according to the [documentation http://impactjs.com/documentation/class-reference/game#backgroundanims].
init: function() {
var as = new ig.AnimationSheet('media/tiles/lavatiles16x16.png', 16, 16);
this.backgroundAnims = {
'media/tiles/lavatiles16x16.png': {
0: new ig.Animation(as, 0.13, [1, 2, 3, 4, 5, 6, 7, 8])
}
};
...
this.loadLevel(Level1);
}
It doesn't seem to be working at all, I don't see any animations using the first level tile.
