Text

triton13triton13 Member Posts: 161
edited February 2012 in Working with GS (Mac)
Hey guys, when I display text in an actor, how can I make it so it changes the text opacity to 0 when pressed?

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited February 2012
    Hi @triton13 - I wish we could! But it's not possible in GSC for some reason; only the actor itself with any image is affected by alpha. If you've got your type on a flat colour background, you could fade in a block of the same colour over it; or make the type as a graphic, then it will fade, as you know.... other than that, not much else that can be done, I'm afraid.

    ----------------------------------------------------------------------------
    iPad app: End of the Earth –•– http://davidgriffinapps.co.uk/
    ----------------------------------------------------------------------------

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    What you can do is make a self attribute in the text actor called textOff

    Have a rule when touch is pressed, change attribute textOff to true

    then have the display text behavior in a rule when attribute textOff=false
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited February 2012
    Oh, I see! Misread yet again, you don't want a fade at all! As John says, or another way:

    When touch is pressed
    When YourAttribute is true
    Display Text your text
    otherwise
    Display Text ------- nothing there.......

    (or even:
    When touched is pressed
    Destroy Actor
    When touch is released (?)
    Spawn actor

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • CloudsClouds Member Posts: 1,599
    . . . . . or when touch is pressed

    change attribute X position to -100
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited February 2012
    Ha! :-) (Is that what they call lateral thinking, @Tynan? ;-) )

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • triton13triton13 Member Posts: 161
    I understand what you guys are saying but my situation is confusing to me. I have a "Paused Screen" at the beginning of every level so when you press it, the scene starts. In that "Paused Screen" actor, that's where I have display text.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi Triton, do you mean you've a plain button, but when you press it, it shows the words Paused Screen (and the rules pause the scene presumably); but when you press it again, it's just a plain button; and so on?

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • triton13triton13 Member Posts: 161
    Here's a small walkthrough. When the game starts up, there's the menu. Start, Options and so on. You click on start and I have an actor that is black but I turned the opacity down so it makes everything else darker. That's my paused screen because I have behaviors in there that when the scene starts, it doesn't make the game start until it's pressed. When it's pressed, the actor disappears and the game starts. What I want is the text to be on that actor. I displayed text on the actor but it doesn't disappear when I press on the screen.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Then do what i posted above and youll be good.
  • triton13triton13 Member Posts: 161
    I did and it worked. Thanks man
Sign In or Register to comment.