Do you want them to touch the text exactly or the actor that has the text in it? Keeping in mind that the actor is normally bigger than the text. If it's just the actor then yes just add a rule if actor receives event touch pressed.
Yes. The actor is a smallish ball and I put text beside it. The text reads "PLAY" and my goal is to make it so you can touch the words and the actor does something afterwards but I can only figure out how to touch the actual actor instead of the display text.
Is the text a separate actor from the ball? If not, why not have it as a separate actor? That way you can tell the ball actor to do something when the text actor is pressed.
If you have to have them in the same actor then try setting up a rule to check if the touch x and y is roughly where the text is by checking a rectangular area with min and max x and y coords. Hope that's clear.
Creating a text actor was plan B but I just wanted to see if I could get away without it simply because it would be less work than creating another actor from scratch. Ill try your suggestion. Thanks.
Comments
If you have to have them in the same actor then try setting up a rule to check if the touch x and y is roughly where the text is by checking a rectangular area with min and max x and y coords. Hope that's clear.