Implement a HTML text link

HTML text link

hi.
i want to insert a textblock which includes some links to external websites. in HTML it would look like:
a href=“https://www.anywebsite.com/”>Visit this website!

it is possible in these forum posts too but not possible with BBtext in gdevelop (dear developers: why not?).

so how to implement such links in a scene?

Hello.
I think this example will help you: Open url in browser - a game example from the GDevelop game making app | GDevelop

hi.
yes. that helps a bit. thank you!
perfect for a single textline. i know that.
BUT
i have a very long text (privacy policy) with appr. 10 links in it.
the procedere you mentioned will be a very very cumbersome way to solve this problem.

example:
text text text text text text text text text text text text

  • text text LINK text text text*
  • text text text text text text text text text text text text*
  • text text text text text text text text text text text text*
  • text text text text text text LINK text text text text text.*
  • and so on…*

it would mean i have to seperate ALL link texts to have a single textline to work with:
1)textbox 1 with
text text text text text text text text text text text text
text text
2) textbox 2 with
LINKtext 2 + action setting 2
3)textbox 3 with
text text text text text text text text text text text text
text text
and so on…

a simple bb texteditor as used for this forum posts would make it easy

Technologies that are not used by the engine are used to send messages. There is markup and page elements for the message. And the engine renders everything via WebGL, so there is no such possibility. All the features of the object for the text are listed here: Text object [GDevelop wiki]

thanks again.
sad to hear that. such a “simple” function, adding html text.
proposal for the next-update-developers: please expand the BBtexteditor.
maybe put it on the wishlist for christmas :wink:

As E1e5en explained, forum and engine are technically very different things, even if it seems simple at first.
You could use the iFrame extension with your html code or add other html elements using the same technique. But it has the disadvantage that they are displayed above the game itself and iframes are blocked on liluo as far as i know.

The simplest solution will be to use a transparent Tiled sprite object, placing the instances with an Id over the text boxes.

1 Like

hi jack.
thanks first.
could you please advise with this
“You could use the iFrame extension with your html code”
how to? (step by step, if possible?)
it sounds very interesting…

Project manager
Extensions
search for new extensions
Install “Iframe”
Use the Create an Iframe action
The URL field is the path to your html file on a webspace

thanks for that iframe tip.
works with external html code of course.
BUT
i also need a function to insert this text section WITHOUT beeing online.
any idea for that?