Touch Display Text

Hi, I was just wondering if it's possible to add a touch rule onto a display text that's linked to an actor. Thanks.

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Yes.
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    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.
  • hockeykyle10hockeykyle10 Member Posts: 8
    I have it set to touch the actor but I was hoping to change it so I could touch the actual displayed text instead.
  • -Timo--Timo- Member Posts: 2,313
    you can make the actor as big as the text? :/
  • hockeykyle10hockeykyle10 Member Posts: 8
    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.
  • KevinCrossKevinCross London, UKMember Posts: 1,894
    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.
  • hockeykyle10hockeykyle10 Member Posts: 8
    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.
  • joshiwujoshiwu Member Posts: 207
    You could Make the actor graphics a transparent PNG thats the size of the text, with the actor illustrated in the center. Like invisible wings.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    You can't do that. Touch see's the whole actor it is in not the text.
Sign In or Register to comment.