1 decade ago by ansimuz
Hi,
I am using the Texture-atlas plugin: https://github.com/dpweberza/ImpactJS-Plugins to create my sprite atlases for my game.
It works fine when running the game but the issue comes when i open a level on weltmeister it throws an "Uncaught TypeError: undefined is not a function " on any entity using the following function in the init block:
If i change it to the the ready or the update method of this entity works fine with the exception that the entity is not drawn in the weltmeister for some reason.
Any ideas?
I am using the Texture-atlas plugin: https://github.com/dpweberza/ImpactJS-Plugins to create my sprite atlases for my game.
It works fine when running the game but the issue comes when i open a level on weltmeister it throws an "Uncaught TypeError: undefined is not a function " on any entity using the following function in the init block:
this.addTextureAtlasAnim( ig.game.textureAtlas, 'idle', 1, ['EscapePodFemale 1.png', 'EscapePodFemale 2.png'], false);
If i change it to the the ready or the update method of this entity works fine with the exception that the entity is not drawn in the weltmeister for some reason.
Any ideas?