Translations

Know another language? Translate this tutorial!

Stats

9.3K visitors
62.7K page views
984 translation visitors
5.6K translation page views

Upload your game to Google Drive

Favourite 62 favourites
Tutorial written by AshleyOriginally published on 12th, December 2012 - 6 revisions

Note: As of September 2016 Google have discontinued support for hosting public HTML files on Drive. Sadly this means it no longer works for hosting games! You will have to find another hosting service. The original article is included as a sort of archive entry, but the steps described below won't work any more!

Have you finished your game and want to share it with the world? If you have your own website and some HTML know-how, you probably are comfortable integrating the exported files to your site. However, if you don't have your own website, you can share your games on Google Drive!

Get a Google Drive account

If you don't have one already, head to Google Drive and sign up an account. It's free, and you get 5GB of storage (which is plenty, enough for lots of games). If you already have a Google account that you're signed in to, you probably already have a Drive set up for you automatically.

Upload your project

Export your project as normal from Construct 2 (make sure you choose the 'HTML5 website' option). In Google Drive, click the Upload icon and choose Folder.

Uploading a folder to Google Drive
Select the folder with your exported game from Construct 2. The files will start uploading to your Google Drive. You might need to wait a few minutes for all the files to finish uploading.

Share the folder

Once uploading is done, select the checkbox for the uploaded folder, and click the Share icon at the top.

Sharing a Google Drive folder
In the dialog that opens, you'll notice by default it's set to private. Click Change.

Changing sharing settings
Select Public on the web and click Save.

Making the folder public

Get your public URL

To get a URL to the playable version of your game, and not a page which opens the source of the HTML page, you need to edit the Link to share a little.

In the sharing link, between the '/d/' and '/edit' parts is a unique ID for your shared folder. Copy this from the URL. Next, paste this in to the following URL where it says FOLDERID:

https://googledrive.com/host/FOLDERID/index.html

Note you still need "index.html" on the end. Here's an example:

Getting your hosted URL
This is now the URL to your game! You should be able to visit it in a new browser tab and see the game load.

Sharing the link

You're now armed with a public link to your game that you can paste anywhere. Paste it to your friends, send it by email, link to it from your blog, tweet it, put it on Facebook, Google+ it, do what you like! Your game is now accessible to the whole world. Have fun! :)

Bandwidth limits

Google Drive is a convenient way to share your project with a small number of people. However, note that Google Drive is a personal file host, so the free account may have some fairly low bandwidth limits. If too many people play the game, Google may shut down your folder with a "bandwidth exceeded" message. If you want a more reliable host in case your game is popular, you'll need to find one that charges. However there are loads of hosts out there, and many of them are very cheap, so you shouldn't have to look far.

Unlock your full gamedev potential

Upgrade to the Personal Edition of Construct 2, it has way more features and won't holding back from making money and using your full creativity like the free edition does. It's a one off payment and all Construct 2 editor updates are free for life!

View deals

Plus, it's got a lot of additional features that will help you save time and make more impressive games!

Congratulations on finishing this tutorial!

Did you learn a lot from it? Share it now with your friends!

Share and Copy this Tutorial

You are free to copy, distribute, transmit and adapt this work with correct attribution. Click for more info.

Comments

0
Ulpo media 3,655 rep

Excelent!!!..

Wednesday, December 12, 2012 at 9:36:36 PM
0
emoaeden 9,253 rep

Sweet, gonna go try this out now !

Wednesday, December 12, 2012 at 10:19:25 PM
0
C-7 14.6k rep

It's nice for this, but I think it's even better for collaborating. It'll auto-sync to your computer, so you don't even really need to upload in that case--just have Google Drive running on your computer. Then have the whole team able to log in.

This sounds like a more ideal way to use Google Drive. Just set your project to folders (not capx) and people can load it up with resources, modify audio, etc. and someone can edit the main file. The only downside is I don't think there's a 'checkout' option for files, but that should be easily remedied with communication.

Wednesday, December 12, 2012 at 11:13:45 PM
1
kenli 7,318 rep

Alternative to Dropbox.
Because i know that Dropbox new sign-up user doesn't have a public folder again, isn't it?

Anyway, thanks Scirra :)

Thursday, December 13, 2012 at 5:02:56 PM
0
Alcemon 3,898 rep

Does the shared folder NEEDS to be public?

I'd like to grant access only to a few collaborators and this method does not seem to work in that case.

Thanks!

Wednesday, December 19, 2012 at 11:58:36 AM
0
Ashley 180.5k rep

@Alcemon - I'm not sure if it will work, try leaving it 'Private' and add a few people, share it with them, and see if it works!

Wednesday, December 19, 2012 at 2:40:15 PM
0
Alcemon 3,898 rep

@Ashley - I experimented a little and found out that, among the 3 visibility options, it doesn't work with "Private" but it DOES work with the "Anyone with the link" option besides the "Public" one.

The reasons for this can be found here:"
https://support.google.com/drive/bin/answer.py?hl=en&answer=183965

Thanks for the tutorial, it sure makes it easier to collaborate with the artists using this (as they can see their images in-game by just replacing the files in the Gdrive folder)

Wednesday, December 19, 2012 at 8:42:23 PM
0
JackieChan 3,615 rep

thanks, I couldn't get dropbox to work. ( i keep getting a black screen when using that tutorial) but this one works fine!

Sunday, March 10, 2013 at 9:20:32 PM
1
Soldat 2,515 rep

Do we know if this still works? I've just tried it, checked the instructions, and checked again, but no luck.

Wednesday, March 13, 2013 at 8:46:31 AM
0
200mg 2,288 rep

Thanks for this tutorial... and yes, it still works.

Friday, March 15, 2013 at 5:06:51 AM
0
Smit08 3,170 rep

This Helped me to Upload my game to my Blog......Super Happy with it....:)

Monday, March 18, 2013 at 5:40:24 AM
0
rob 3,439 rep

Hello everybody

do you have any idea about in-app billing or purchase ? if yes than plz help me and share .capx file

Monday, April 01, 2013 at 1:50:52 PM
0
lemo 6,602 rep

The new address is

drive.google.com/uc?id=XXXXXXXXXXXXXXXXXXXXXXXXXXX

Where XXX is again that code you get for your file links like

docs.google.com/file/d/XXXXXXXXXXXXXXXXXXXXXXXXXXX/edit?usp=sharing

You just need the FILE id instead of the FOLDER as it used to be

Monday, April 08, 2013 at 8:09:39 PM
1
uwaga 2,057 rep

My share link looks different:

drive.google.com/folderview?id=0B1jCKb9UzG3pUjZXWWQ4NVhkMVE&usp=sharing

I tried using the code between the "=" signs and that did not work.
Help, class full of students can't turn in their work.

Thursday, April 11, 2013 at 8:29:30 PM

Leave a comment

Everyone is welcome to leave their thoughts! Register a new account or login.