How to let the player download a custom file from the game?

Hi everyone!

I’m working on a game in GDevelop, and I’d like to offer the player the possibility to download a custom file — ideally a PDF (it’s meant to be a poster), but it could also be a .jpg if that’s easier.

I want this download to happen when the player clicks a button.
However, I’m not sure if that’s possible in GDevelop, or how I should approach it — especially since the file would already be included in the game.

Any help, tips, or examples would be greatly appreciated. Thanks in advance!

You can upload your file to a cloud app like google drive then set share file to.everone with a link the paste the link like this"mypdf.file"

Thank you so much for the helpful tip! That definitely makes things easier for me.

Be careful what you’re sharing on your Google Drive though, don’t share anything that’s not intended for public consumption.

1 Like