match game stop clicks
lucybranthwaite
Member Posts: 6
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
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.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Would this still work if I wanted the actors to become not clickable after two other actors have been pressed?
but also after 3 seconds I want the cards to be clickable again