How do I Make an Event from One Layout affect the Other?

0 favourites
  • 6 posts
From the Asset Store
Footsteps SFX One contains 400 sounds of steps and jumps on different surfaces.
  • Basically in Layout 1 when you click an object it's supposed to update a number in layout 2, but doesn't. I tried to put the number in the same layout and that worked, but I want the number in a separate layout.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How do you store this number?

    If it's a variable on your event sheet, just make it Global, it should be visible to both layouts.

    You can also create an array or a dictionary and store your number there, or you can add an instance variable to some object accessible from both layouts.

    The dictionary would probably be the best solution.

  • How do you store this number?

    If it's a variable on your event sheet, just make it Global, it should be visible to both layouts.

    You can also create an array or a dictionary and store your number there, or you can add an instance variable to some object accessible from both layouts.

    The dictionary would probably be the best solution.

    Capx Example by any chance?

  • Here you go:

    https://www.dropbox.com/s/f0952pplmsucm ... .capx?dl=0

    I tried to make it simple as I understand you are new to this.

    Of course many things can be optimized there because both layouts are very similar and share most of the code.

    You can move repeating pieces of code to functions, or you can even make both layouts to use the same event sheet.

  • Here you go:

    https://www.dropbox.com/s/f0952pplmsucm ... .capx?dl=0

    I tried to make it simple as I understand you are new to this.

    Of course many things can be optimized there because both layouts are very similar and share most of the code.

    You can move repeating pieces of code to functions, or you can even make both layouts to use the same event sheet.

    Thank you so much, I'll check it out <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" />

    Edit: I'll update in a day or so if I can get this working in my game, thank you so much for taking your time to do that I didn't expect it to have so many events.

  • I didn't expect it to have so many events.

    That's because there are 3 examples - using a variable, dictionary and array.

    And, like I said, most events are identical in both layouts.

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