spriteUtilities icon indicating copy to clipboard operation
spriteUtilities copied to clipboard

filmstrip (possibly other methods too) to take texture as well

Open ironchestgames opened this issue 8 years ago • 3 comments

Hello,

I have a case where I already have the texture for my filmstrip, but the method only accepts the loader-resource key. If it could take any texture it would be more useful as well.

Kind Regards,

ironchestgames avatar Feb 15 '17 10:02 ironchestgames

This is an excellent feature request.

kittykatattack avatar Feb 15 '17 17:02 kittykatattack

if(typeof texture === 'string') { //Find the width and height of the texture var textureWidth = this.TextureCache[texture].width, textureHeight = this.TextureCache[texture].height; }else if(typeof texture === 'object'){ var textureWidth = texture.width, textureHeight = texture.height; }

??

double-v avatar Jun 16 '17 09:06 double-v

@double-v Thanks - I will investigate that solution 😄

kittykatattack avatar Jul 06 '17 13:07 kittykatattack