nepalez Posted February 8, 2022 Share Posted February 8, 2022 Hi all, I have some troubles with Pixi render behavior. Now I have a container that renders a list of sprites, like this: protected _render(renderer: PIXI.Renderer): void { for (let i = this.items.length - 1; i >= 0; i--) { let item = this.items[i]; item.render(renderer); } } All of them are located at the start position, (0, 0). The position was calculated from inside a game loop. Actually need to do something with transformation when my render works, but I don't know what. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 8, 2022 Share Posted February 8, 2022 updateTransform() handles it and its called before all render's Quote Link to comment Share on other sites More sharing options...
nepalez Posted February 10, 2022 Author Share Posted February 10, 2022 On 2/8/2022 at 5:17 PM, ivan.popelyshev said: updateTransform() handles it and its called before all render's I'll try to do that, thanks! 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.