How do I use event from one layer in another layot

0 favourites
  • 4 posts
From the Asset Store
Very simple code without excess options (15 events for server and 11 events for client)
  • My project has a total of 6 layouts. One layout (start screen) will have buttons/clickable text that takes the user to the appropriate layout (1 link for each of the 5 different layouts). However, I want the user to have to visit the layouts in a certain order. Right now when the project is loaded the first layout they need to visit is set at 100 opacity, and all the others are at 50. I want each link to only work if they're at 100 opacity. I've tried setting it up so a button that appears at the end of the first required layout will take the user back to the start screen AND set the opacity for the next layout at 100. I've been able to get the button to take the user back to the start screen but I can't seem to get the next layout link to turn to 100 opacity. Any suggestions?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm a little confused whether you mean layers or layouts, but, maybe try using a global variable to signal when each one needs to be at whichever opacity.

    E.g.

    Player finishes level 1 --> Set Global Variable to 2

    If Global Variable = 2 --> Set opacity of level 2 to 100

  • Use a function and send in a parameter for each button that is pressed.

  • Thank you! I've got it working now.

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