How do I make "hyperlinks" inside textbox ?

Get help using Construct 2

Post » Tue Aug 11, 2015 4:39 pm

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 :roll:
Last edited by JiexDrop on Wed Aug 12, 2015 6:34 am, edited 3 times in total.
B
3
Posts: 5
Reputation: 187

Post » Tue Aug 11, 2015 7:46 pm

I was thinking about editing the properties of the textbox plugin... Is there just any hint to what I should do ?
B
3
Posts: 5
Reputation: 187

Post » Wed Aug 12, 2015 12:17 am

use the Browser Object - Go to URL.
To display a photo, load it into a sprite.
B
98
S
35
G
20
Posts: 438
Reputation: 17,875

Post » Wed Aug 12, 2015 6:24 am

Thanks but I don't understand how you can assign the "go to url" to a word inside a text box... Any documentation ?
B
3
Posts: 5
Reputation: 187

Post » Wed Aug 12, 2015 8:05 am

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?
B
5
S
1
Posts: 12
Reputation: 363

Post » Wed Aug 12, 2015 9:49 am

Sunny87 wrote: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 ?
B
3
Posts: 5
Reputation: 187


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 22 guests