[Solved] Link internet

SeniGaming

Active Member
Game Developer
Sep 8, 2019
585
583
Hi.

I want to put an internet link on an image, I tried with hotspot, imagebutton... but it doesn't work.
I put my code right underneath it.


Code:
label peoplehelpthepeople:
    play music "music"
    scene nameofmyimage
    pause 6
    scene black
    "This is the end of this version!"
    menu:
        "Back to menu!":
            return
        "Quit the game!":
            $ renpy.quit()
    return
On the image I named *nameofmyimage* I want to put a clickable link to internet.
with an image or hotspot or other solution whatever.
I want this image to repeat for the 6 second pause then it disappears and the final question appears.

the image should not take the player somewhere, just open a web page for it.
The player should not be forced to click on it.
 

SeniGaming

Active Member
Game Developer
Sep 8, 2019
585
583
Sorry if I disturbed anyone, I found it myself.

I thought I had tried everything, but I forgot to try the thing that works.

I'll put the code in if anyone's interested.

Code:
label peoplehelpthepeople:
    play music "yourfilename.MP3"
    scene nameofyourimage
    show screen thescreentest
    pause 6
    hide screen thecreentest
    scene black
    "This is the end of this version!"
    menu:
        "Back to menu!":
            call screen main_menu
        "Quit the game!":
            $ renpy.quit()

screen thecreentest():
    imagebutton auto "icon/youriconpicname_%s.png" action OpenURL("yourlink") align (0.02, 0.02)
 
Last edited: