Gyldstrand Posted January 21, 2016 Share Posted January 21, 2016 How do you position the user interface graphics / sprites to stay on the screen? Quote Link to comment Share on other sites More sharing options...
xerver Posted January 21, 2016 Share Posted January 21, 2016 Up to you, pixi is a scene graph. Add the proper container hierarchy so you can move the game and not the gui. Quote Link to comment Share on other sites More sharing options...
Gyldstrand Posted January 21, 2016 Author Share Posted January 21, 2016 Whats the dumbed down version of that? I can't get anything to stay with the screen unless I base it off my players position. Quote Link to comment Share on other sites More sharing options...
mattstyles Posted January 21, 2016 Share Posted January 21, 2016 Add a container for the game world, add one for the gui, only move the game world one. Or use the DOM and position fixed or absolute depending on case. Quote Link to comment Share on other sites More sharing options...
Gyldstrand Posted January 21, 2016 Author Share Posted January 21, 2016 My game world is a stage with everything in it that scrolls around the map based on players position in the renderer's view. If I try to render a separate container the same way I render the stage I get nothing showing up or a black screen. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted January 21, 2016 Share Posted January 21, 2016 Add a container for the game world, add one for the gui, PUT THEM BOTH INT ROOT CONTAINER, only move the game world one. Quote Link to comment Share on other sites More sharing options...
Gyldstrand Posted January 21, 2016 Author Share Posted January 21, 2016 I don't know why that was so difficult for me. I never changed the renderer from the stage to the root container. I'm gonna leave you guys alone for a couple weeks. 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.