• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

HTML5 Hyperlink text to a website using a message box

A

Ashish Jivram

Guest
Hello,

I am currently trying to hyperlink some text which appears in a message box:
Code:
str="Create this but for more information click here."
url_open_full('www.google.com' ,'_blank', 'location=true')
show_message(str);
How do i do this/Can this be done?
 
Q

Quinnlan Varcoe

Guest
You could make an object out of the text and then make a mouse collision event.

// if mouse button is clicked and the mouse is colliding with the text, go to the link.
 
A

Ashish Jivram

Guest
but i want the user to be able to click the text within the Message Box, do you know if this is possible?
 
Q

Quinnlan Varcoe

Guest
Yeah, thats what I said, you could make the text into a seperate sprite or object and give it a collision mask
 
A

Ashish Jivram

Guest
I dont understand how this will work in a message box
 
Top