Is this best for menu selection?

0 favourites
  • 5 posts
From the Asset Store
Selection frame like in RTS games, works both on mobile and desktop devices.
  • I have a menu designed around layers. So I have effectively 15 layers to switch between.What I currently am using is a group that physically shecks every layer and sets them one by one to visible/invisible regardless. Which brought me up to over 40 events. My questions is.

    Will this work? I'm afraid to commit to the change and have to redo everything all over again if it doesn't:

    <img src="https://dl.dropbox.com/u/77974757/menu_repeat.PNG" border="0" />

    I think the logic is sound but any thoughts or ideas on how to further optimize? This brought me down to just over 20 events from the over 40 if it works.

  • I would just add all the elements to a family, rather than add all the layers.

    That way you can change all parts by referencing the family.

    Also if you insist on using loops, you should check out for loops, and use loopindex, rather than adding a local.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • newt

    Add all the elements to a family? So draw them off screen then move them all on screen when the menu is selected? Wouldn't that increase the events for drawing? Or am I thinking wrong regarding what you mean?

  • No they can all be 0 opacity/ invisible on the same layer.

    You just need to keep track of the z order if they overlap one another.

    Like I said just reference the family, like on your condition set family opacity to zero.

  • Ahh :)

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