match game stop clicks

Hello,
I'm making a match game so when two cards are clicked and they match they are destroyed but I only want the player to be able to click two cards at a time, I've tried to make a controller actor who keeps track of how many clicks there has been but I'm not sure how to make an object not clickable.

any ideas?

thank you!

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    To make an object not clickable, change an actor boolean (e.g. self.locked) to true. In the When Touch is Pressed rule, add the condition When attribute self.locked is false.

  • lucybranthwaitelucybranthwaite Member Posts: 6

    Would this still work if I wanted the actors to become not clickable after two other actors have been pressed?

  • lucybranthwaitelucybranthwaite Member Posts: 6

    but also after 3 seconds I want the cards to be clickable again

Sign In or Register to comment.