How do I make an actor with display text invisible?

rab127rab127 Member, PRO Posts: 47
edited March 2012 in Working with GS (Mac)
Hi

I want the text from a display text to be invisible until I touch another actor.
I have set the alpha to 0 to hide the actor. When I tried to set the actors visibility to 0, off or false I still get the text displaying.

Comments

  • UnicornInvasionUnicornInvasion Member Posts: 301
    Make a boolean Attribute called Display text. And go into the other actor and make a rule. When touch is pressed
    Change Attribute game.Display text to true

    Go into the display text actor and make a rule.

    When attribute game.Display Text is true

    Display Text!

    Hope this helps!

    UnicornInvasion
  • rab127rab127 Member, PRO Posts: 47
    Thanks guys!
  • insideappsinsideapps Member Posts: 6
    I've had the same question for hours. Thanks for the tips, I'll try this out!
  • insideappsinsideapps Member Posts: 6
    Just tried and it doesn't seem to be working. If the text has already been displayed, will this rule make it disappear again? Or does it just keep the text from being displayed in the first place?
  • EatingMyHatEatingMyHat Member Posts: 1,246
    You can also display an empty string once you need the text to go away, however the boolean should work.
  • OakgroundsOakgrounds Member, PRO Posts: 28

    Sometimes it is easier to hide the actor of screen. Just make the x coordinate negative.

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

    @ward Please don't revive threads that are two years old.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

This discussion has been closed.