Sign in to follow this  
yurqo

Nested spritesheets?

Recommended Posts

Let's say I have multiple frame by frame animations. PIXI.AnimatedSprite instance could be created using spritesheet, but what if i want to merge animation spritesheets (if they are small enough) into one big spritesheet but maintain refference to nested sheets? Is it possible and if so, is it even worth it?

Share this post


Link to post
Share on other sites

There's no such function in vanilla pixijs.

Its possible and I made it many times. However it requires some coding. Here's the thing that works in pixi-v4: https://github.com/gameofbombs/pixi-super-atlas Its not ported to v5 yet. It has TextureRegion hack specially for nested spritesheets: https://github.com/gameofbombs/pixi-super-atlas/blob/master/src/core/TextureRegion.ts

Unfortunately I cant give you more.

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.