How do I Position GUI Elements inside moveable popup menu

0 favourites
  • 4 posts
From the Asset Store
Relax and relieve stress by popping bubbles in Fidget Anti- Stress Releaser!
  • Is there any "container" which allows to position all elements inside relatively to container?

    I have some form elements (not sprites), which should have static position relative to popup window drawn in game, and the popup window has to be bound to current window scroll.x and scroll.y position, so when the game scrolls somewhere - the popup window goes with it.

    Only way I found is to create any window element, and add Anchor Behaviour to it,

    then for every element inside add Pin Behaviour and set them pinned to popup window.

    Project loses its clarity, when I need to add same pin behaviour for every new Interface element.

  • I'd just use a group in which the elements are created and or spawned at the right positions and activate deactivate that group..

    All elements would be within that group so clearity won't be lost..

    That way the positions of your elements wouldn't have to be calculated every tick, for they would only exist when needed..

  • You could try to use containers to spawn them and destroy them together, and place them at runtime using the on created condition to plqce them, that being combined with a pin.

    Also, try to spawn them on a layer with a parralax of 0,0, so they won t be affected by scrolling.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Using a "user interface" layer with parallax 0 sounds like a great solution. Thanks for both options to solve this problem.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)