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
gyroscopeI am here.Member, Sous Chef, PROPosts: 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.
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.
gyroscopeI am here.Member, Sous Chef, PROPosts: 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?
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.
Comments
----------------------------------------------------------------------------
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
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
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
change attribute X position to -100
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps