Hi Im Sev Posted June 27, 2019 Share Posted June 27, 2019 I made a container containing a bunch of sprites. Then I made a single texture out of it and made a tiling sprite. Now my question is, is it possible to still keep track of the positions of the sprites that are now in the tiling sprite? Because I need to animate the tiling sprite and still keep track of the position of the sprite. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 27, 2019 Share Posted June 27, 2019 Yes, it is. Take tilingSprite worldTransform, multiply by tiling transform , multiply by sprite local matrix inside tiling texture. Quote Link to comment Share on other sites More sharing options...
Hi Im Sev Posted August 9, 2019 Author Share Posted August 9, 2019 Can you be more specific on how its done like just console logging the positions per sprite would be greatly appreciated. Here is a part of what I've been doing... const reelTexture = app.renderer.generateTexture(container); let newReel = new PIXI.TilingSprite( reelTexture, reelTexture.width, reelTexture.height ); app.stage.addChild(newReel); let reelSpeed = 0.3; animate(); function animate() { newReel.tilePosition.y += 10; app.renderer.render(app.stage); requestAnimationFrame(animate); } Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 9, 2019 Share Posted August 9, 2019 I'm sorry, but there were too many basic questions about reels, we are very tired and dont answer them anymore. We have special demo for slots: https://pixijs.io/examples/#/demos-advanced/slots.js Ask questions after you study it 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.