Create a demo on browser ?

Discussion and feedback on Construct 2

Post » Sat Nov 07, 2015 2:31 pm

Hey everyone, I would like to send a playable version of the dumb game I'm working on to a friend (playable on his browser), but I'm not sure of the procedure. I have to add the Browser object to my project and...then ? The detailed documentation shows how to use it, but not how to set it. I suppose that enter a web address isn't enough to achieve the deal. May I ask you how do you do this ?

Thanks in advance =)
B
16
S
4
Posts: 86
Reputation: 1,525

Post » Sat Nov 07, 2015 3:45 pm

By default C2 exports HTML5 games that are playable in the browser.
Simply export as website, host online and give the URL to your friend.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
289
S
112
G
94
Posts: 7,333
Reputation: 69,293

Post » Sat Nov 07, 2015 3:46 pm

You can create a standalone version by exporting using NW.js, or if you want it to be playable through a browser, then you should export as HTML 5 and upload all the exported files to a hosting service such as Dropbox etc and provide them with a public link to the index.html.

edit
Ninja'd by Kyatric
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,386
Reputation: 58,454

Post » Sat Nov 07, 2015 5:54 pm

I tried with DropBox and the only result is a link which let the possibility to download the html file. I would like to make something like that :

http://www.scirra.com/labs/physics/index.html

Is that possible with DropBox ?
B
16
S
4
Posts: 86
Reputation: 1,525

Post » Sat Nov 07, 2015 7:12 pm

Yes it is ; don't share the repo, just place your game dir in a publicly available location, and get the public link for the index.html file. That's what you give others to test your game
Image
Game Producer & Independent Developer - http://raphaelgervaise.com
B
23
S
9
Posts: 237
Reputation: 2,207

Post » Sun Nov 08, 2015 2:58 pm

Indeed, thanks for your help ! My friend can now see a black screen with the following message "HTML5 is not supported by your Browser, please update it" or something like that. BUT he actually HAS the last version of FireFox and Chrome (we tried on these two). I tried too, and I've got the same result.

Image

Do you have any idea ?
B
16
S
4
Posts: 86
Reputation: 1,525

Post » Sun Nov 08, 2015 3:18 pm

You can also get that message if you forbidding javascript from running, such as can happen when using the NoScript Firefox addon.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,386
Reputation: 58,454

Post » Sun Nov 08, 2015 4:47 pm

Ok, but I don't have any addon except Adblock, which I disabled to test and get the same result again :/
B
16
S
4
Posts: 86
Reputation: 1,525

Post » Tue Nov 10, 2015 5:59 am

UP anyone ? :/
B
16
S
4
Posts: 86
Reputation: 1,525

Post » Tue Nov 10, 2015 6:26 am

Does the microsoft browser work?

Besides addons you'll have to look in your browser's settings to see if javascript is disabled. By default it wouldn't be disabled, so presumably your friend disabled it, or some antivirus/security software he uses disabled it.

As an example for chrome I found it under settings->advanced settings->context settings...
In the javascript section there are settings to disable it completely or block or allow certain sites.
B
92
S
32
G
107
Posts: 5,274
Reputation: 69,959

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Sockratease and 3 guests