Making actors visible but not touchable
![moop62](http://forums.gamesalad.com/applications/dashboard/design/images/defaulticon.png)
Hi all, first time GS user here,
I'm working on a game that uses a lot of conversations, so that when the player touches the character on screen a text box appears on the bottom to display what they are saying. I'm using spawn actor to spawn my text boxes on touch but am having the problem that when characters are touched multiple times, multiple text boxes appear, which isn't good.
I was hoping to be able to put a blocking actor with .2 alpha over the touchable characters on the screen, to have them partially visible but not be able to be touched, but it seems that you can still touch the actors that are behind other actors. Can anyone help me out?
I'm working on a game that uses a lot of conversations, so that when the player touches the character on screen a text box appears on the bottom to display what they are saying. I'm using spawn actor to spawn my text boxes on touch but am having the problem that when characters are touched multiple times, multiple text boxes appear, which isn't good.
I was hoping to be able to put a blocking actor with .2 alpha over the touchable characters on the screen, to have them partially visible but not be able to be touched, but it seems that you can still touch the actors that are behind other actors. Can anyone help me out?
Best Answer
-
The_Gamesalad_Guru Posts: 9,922
You need to create a lockout so make a Boolean so that when the text is on the screen it is true. Put that as a condition in your touch rule or rules that it must be false. Change it back to false in the rule that makes the text disappear.
Answers