Containers and Spawning in Position

0 favourites
  • 5 posts
From the Asset Store
Vector illustration of a UFO with an alien in three different positions.
  • I've been trying to get to grips with containers. I have a UI window sprite which contains various HTML elements in specific positions within it. I've added them all to a container and, in the layout, moved each element to where I want it to be.

    When I spawn the window, all associated elements spawn at the same point as the window. Is there built-in functionality to ensure each one spawns in the correct place, relative to the window or do I have to set the position of each one each time a new window is created? I assumed this would be a feature as in Unity hierarchies, but it either seems like it isn't or I'm using the feature incorrectly.

    Any help would be appreciated.

  • Maybe you should use hierarchy instead of containers.

  • Maybe you should use hierarchy instead of containers.

    I've tried this but I seem to get the exact same issue. I'm sure I can work around, but it just feels like a feature that should be here somewhere - I'm just not using it correctly.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Definitely use the hierarchy feature, remove all containers. You can create the entire menu on a different (unused) layout, add all objects to a hierarchy. Tick "create hierarchy" checkbox in "Create object" action. This will create the entire menu!

  • Definitely use the hierarchy feature, remove all containers. You can create the entire menu on a different (unused) layout, add all objects to a hierarchy. Tick "create hierarchy" checkbox in "Create object" action. This will create the entire menu!

    Thank you a thousand times! I knew I was probably missing something quite simple, just couldn't figure out what.

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