How do I change (control) the other actors?

gawakamygawakamy Member Posts: 109
edited March 2012 in Working with GS (Mac)
Hi, GS dudes.
There are some animations buttons and letters on a scene. I would like to make the letters are disappeard when users click the buttons. How do I control the other actors?

eg. Letter 1, Button 1, 2, 3 (animated) , Letter 2
When any button is clicked, Letters should be disappeared.

Comments

  • T8TRG8TRT8TRG8TR Member Posts: 120
    Make a game attribute that's something like "clicked". Make a rule in all your actors that makes it so if it is touched it sets game.clicked to "yes". Then add another rule to all your actors that makes it so if game.clicked = yes then set self.color.alpha = 0. That should work.
  • gawakamygawakamy Member Posts: 109
    Hi, T8TRG8TR.
    First of all, thanks. :)
    Do you mean "true" instead of "yes". I made an attribute as a boolean, and it just give me true or false.
    Second, do you mean that I need to make same rules twice? I am very confused.
  • gawakamygawakamy Member Posts: 109
    When I tried it, only buttons are disappeard, not the other actors. What I want is to make disappear the other actors when the button is clicked.
Sign In or Register to comment.