Trouble with Display text and keeping it that way. Help please.

ozboybrianozboybrian PRO Posts: 2,102
edited November -1 in Working with GS (Mac)
Thanks for reading.

When attribute Button is 1 and touch is pressed Display text.
When attribute Button is 2 and touch is pressed (on a different actor) display text on new actor.

But I want the old text to stay there and be able to use the same button twice.

Comments

  • JeffreyShimaneJeffreyShimane Member Posts: 372
    You could create a self.attribute that activates the Display Text:

    When attribute Button is 1 and touch is pressed, change self.attribute DisplayOn to 1.

    When self.attribute DisplayOn is 1, Display Text.

    This way, when the button is pressed the first time, the text is displayed and will stay on even after the button is pressed again because the Display Text is not directly tied to Button=1/touch is pressed.

    - Jeff
  • ozboybrianozboybrian PRO Posts: 2,102
    I will give it a go thanks.

    For some reason I can't add attributes to the actors already on the scene.
    Is this a 0.9.3 Glitch?
  • calvin9403calvin9403 Member Posts: 3,186
    ozboybrian said:
    I will give it a go thanks.

    For some reason I can't add attributes to the actors already on the scene.
    Is this a 0.9.3 Glitch?

    you mean a self attribute?
    do you double click on the actor area or the area when you click it have a lock on it?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    instead of equal to 1 use

    greater than or equal to 1

    ___________________________________________________________________________________
    Project Help from Tenrdrmer Click Here

    GS BubbleBall Template HERE!!
    Stacks Level Selection Template HERE!!
    Expanding Option Menu Template HERE!!
    Tenrdrmer's Menu # 3 HERE!!
    Menu #4 - Level Banners HERE!!
    AppSolute Entertainment on Facebook
    AppSolute Entertainment on iTunes
  • ozboybrianozboybrian PRO Posts: 2,102
    Nope, The actor is unlocked and there is no add attribute.

    It's only like that on the scene though but it is unlocked.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    if you want to add an attribute you have to add it to the prototype and it will become available in the instance.

    But first try what I said it should work for you.

    Aaron

    ___________________________________________________________________________________
    Project Help from Tenrdrmer Click Here

    GS BubbleBall Template HERE!!
    Stacks Level Selection Template HERE!!
    Expanding Option Menu Template HERE!!
    Tenrdrmer's Menu # 3 HERE!!
    Menu #4 - Level Banners HERE!!
    AppSolute Entertainment on Facebook
    AppSolute Entertainment on iTunes
  • ozboybrianozboybrian PRO Posts: 2,102
    Thanks Aaron, I see what you're saying and I believe you are right! Good stuff Thanks :D
    Edit - Actually cause if the following on is = / > 2. It'll change the old one.

    But having equal to and using the self attributes makes it work fine.
    Thanks to both of you! :D
Sign In or Register to comment.