Jump to content

Fixed layer?


Recommended Posts

Ninja is correct. The best way seems to be to create 2 containers and move the content container around as needed.


The alternative is to dynamically offset the position of every HUD element based on the viewport but that will get messy.

Link to comment
Share on other sites

Thanks, for clarification:


I do have a separate container for the controls.

I have a camera following a sprite on the main stage which is quite large.

When I draw to the controls container the items are being drawn relative to the stage. I can't seem to find a way to keep the controls layer fixed to the viewport.

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...