I can't seem to figure out how I can make the game open an URL at the end. No button or link, just opening the url in the player's browser.
Any help would be appreciated.
Open URL at end of game
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- IrinaLazareva
- Veteran
- Posts: 399
- Joined: Wed Jun 08, 2016 1:49 pm
- Projects: Legacy
- Organization: SunShI
- Location: St.Petersburg, Russia
- Contact:
Re: Open URL at end of game
Code: Select all
label start:
'The end'
$ renpy.run(OpenURL('http://www.renpy.org'))
return
https://renpy.org/doc/html/screen_python.html#renpy.run
Re: Open URL at end of game
Why would you want to, though? I don't think I'd be happy about a game hijacking my browser to open pages without warning. It could take me to some virus laden page or anywhere.
Re: Open URL at end of game
Thank you very much.IrinaLazareva wrote: ↑Sat Sep 08, 2018 9:03 amhttps://renpy.org/doc/html/screen_actions.html#OpenURLCode: Select all
label start: 'The end' $ renpy.run(OpenURL('http://www.renpy.org')) return
https://renpy.org/doc/html/screen_python.html#renpy.run
Who is online
Users browsing this forum: Ahrefs [Bot], Amazon [Bot], Bing [Bot], chesarty