How do I set a clickable sprite on top of another

0 favourites
  • 3 posts
From the Asset Store
A whole set you need to create a gorgeous winter 2d game
  • I am currently making a button sprite that when I click on it, it will create another button on top of it. I have done a few methods but the buttons keep getting stacked to each other which means when I click one button, the other button will also be clicked.

    I did toggles, setting variables with conditions but none of it works. Is there any solution for this?

  • A variable with condition should work....if object clicked, and condition 'variable = this' then do a thing, otherwise don't do a thing. So you have on object A clicked (var=false), create object B and set object A var=true. Now it locks out object A from being clicked.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • A variable with condition should work....if object clicked, and condition 'variable = this' then do a thing, otherwise don't do a thing. So you have on object A clicked (var=false), create object B and set object A var=true. Now it locks out object A from being clicked.

    Got it . Thanks for the quick respond!

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