0 Favourites

How do I make "hyperlinks" inside textbox ?

  • I would like the player to be redirected somewhere (web) when he clics it. I also need to display photos as charaters, inside of a text box.

    Exemple: this amazing text comes with amazing words

    Each time that amazing is found, it replaces the words with hyperlinks

    I already know how to find words with regex, but not how to replace them with a link...

    Thank you

  • I was thinking about editing the properties of the textbox plugin... Is there just any hint to what I should do ?

  • use the Browser Object - Go to URL.

    To display a photo, load it into a sprite.

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • Thanks but I don't understand how you can assign the "go to url" to a word inside a text box... Any documentation ?

  • You would have to make the text a sprites I should imagine or the word a sprite, most of the text in my games mainly in menu is made in another 3D modelling program and exported into .png, this way you can add events to them in the event sheet, but I'm not making entire paragraphs I'm talking single words or basic sentences on screen, like "twitter" from the sounds of things your doing lots of text?

  • You would have to make the text a sprites I should imagine or the word a sprite, most of the text in my games mainly in menu is made in another 3D modelling program and exported into .png, this way you can add events to them in the event sheet, but I'm not making entire paragraphs I'm talking single words or basic sentences on screen, like "twitter" from the sounds of things your doing lots of text?

    I understand, but yes, I'm planning to use lots and lots of text... But yes I think your thechnique is good. I replace the word I want by a sprite. The only thing left is that I need to find the coordinates of my word, to move the sprite to it's posision... Any idea if regex can do that ? Maybe by counting characters, and converting them into coordinates.... but again, how can I do that ?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
167 14,489
DMT2005's avatar
DMT2005
Unread sticky
1 Favourites
C2 Games made with CocoonIO
136 89,817
minhcuong's avatar
minhcuong
Unread hot topic
99 10,136
karshinkoff's avatar
karshinkoff