flimshaw Posted June 9, 2013 Share Posted June 9, 2013 Heya, I'm working on a Box2D platform engine with Pixi as the renderer. I'd like to have the stage follow the hero as he wanders around. My first thought was just repositioning the PIXI.Stage element, but that didn't seem to have an effect. I guess I could have an offset for every individual object, but seems like it would be cleaner to be able to move an entire viewport at once if that was possible. What's the Right Way to do it? Thanks!-Charlie sneakyfildy 1 Quote Link to comment Share on other sites More sharing options...
enpu Posted June 9, 2013 Share Posted June 9, 2013 Hi, Try to create new PIXI.DisplayObjectContainer, add it to the stage and then add all objects into that container.Then just move the container's position. ScottGirling 1 Quote Link to comment Share on other sites More sharing options...
hkk Posted June 12, 2013 Share Posted June 12, 2013 I have a Sprite whose Texture is data from a canvas. When using this method, only the part of the canvas that is initially visible is shown. How can I redraw the sprite/texture to reflect the movement? 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.