Global Objects for UI

0 favourites
  • 3 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • I have a working UI system that loads the UI layout on the start of the game and then immediately goes to the main menu. I've created the same layers from the UI layout into every other layout so I can have full control over setting them invisible when I do/don't want to.

    However, I've always had issues with these - switching layouts when I want the global objects to appear are always fine, but when I go to a layout and want the objects hidden, it doesn't always work. On the UI layout, I have a function that loads every single object into the correct layer, and I call this function on the start of every layout, as well (ie, Set "healthbar" to layer "UI", etc).

    Am I doing something wrong?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Place all your UI global objects in a family, then 'set Visible/Invisible'. Also use the family for 'set layer'.

  • Captain - thanks; all of the objects are on different layers. It's just strange that it's not staying on the proper layer to begin with...

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