JeanLouis Posted January 14 Share Posted January 14 (edited) Hello, I am building an AnimatedSprite using an array of PIXI.Textures : let animatedSprite = new PIXI.AnimatedSprite(animatedSpriteTexture); I also have in my code an array of the same length of animatedSpriteTexture, listing the offsets to be added to each texture/frame, so to display the player at the correct screen position. For example, I would like frame 0 to be displayed at screen with an offset of -1,0, frame 1 with an offset of 0,2, etc (values stored in array called animatedSpriteOffsets). How can I achieve that ? Thanks ! Edited January 14 by JeanLouis Quote Link to comment Share on other sites More sharing options...
JeanLouis Posted January 14 Author Share Posted January 14 Finally found my way thanks to this link : https://lightrun.com/answers/pixijs-pixijs-how-to-offset-texture-when-spriteachor-is-not-00-solved I really think PIXI need a documentation with examples 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.