bbyford Posted August 21, 2020 Share Posted August 21, 2020 I'm using texture packer and adding the json like this: Loader.add([ path + "spritesheet-0.json?v="+version, path + "spritesheet-1.json?v="+version ]) however when trying to create a animatedSprite the log says the textures are no valid and I see an error with a url GET of the texture name which it shouldnt be doing as it should only be getting the spritesheet. // for each texture in animation let texture = Texture.from(fileObject.name + (i+1) + ext); // add to array textureArray.push(texture); // after for loop character = new PIXI.AnimatedSprite(textureArray); any help would be appreciated. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 21, 2020 Share Posted August 21, 2020 debug spritesheetLoader, this line: https://github.com/pixijs/pixi.js/blob/dev/packages/spritesheet/src/Spritesheet.ts#L301 Find parsed texture names. bbyford 1 Quote Link to comment Share on other sites More sharing options...
bbyford Posted August 22, 2020 Author Share Posted August 22, 2020 (edited) Thanks @ivan.popelyshev think its a case of needing to talk to someone about it.. I was being an idiot and setting up my texture calls at the lowest level, same as the loader so wasn't loading the textures first ?♂️ Moved my code into my setup function that is called after loader finished and everything is working now ? Edited August 22, 2020 by bbyford ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.