How do I make so when I click button, no others are trigged?

0 favourites
  • 4 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Hey everyone, I am having a problem. Every time I press the next level buttons in my game, it triggers the shoot button below it (it being the the layer) as well. So, I'm wondering, how do I make it so that the shoot button only gets triggered when it actually gets tapped (and not when the button on layers above are tapped)?

    My Code (Is there some condition I should add? What I've done isn't doing the trick lol):

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Add another condition

    Touch > Is touching >Next Level Button (x) the (x) being inverted

    Then it won't conflict with what ever statement your using for Touch Next Level Button .

    Just a suggestion and I could be wrong but it looks like you could make the "System trigger once" a sub event and place some of the events into it.

  • Thanks a lot TheDom, it seems like it may have worked. I'll post again if it doesn't do the trick.

  • Just another suggestion. Presumably you have a variable to indicate a game is in progress or not; just check for that variable. Otherwise you might find if you add another button, that will also get in the way, and you'll have to add another condition for that, etc. PS is there a reason why do you do 'is touching' with 'trigger once' instead of just 'on touched'?

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