Simple problem, but i need help.
I've done project from tutorial (Alien hunter). While i testing it - it works in chrome.
I want to place it in And done File -> Export Project -> HTLM5 website.
After i'm opening index.html in chrome and... nothing. Black screen - that's all i see.
Smells like i'm doing something wrong, but that?
Develop games in your browser. Powerful, performant & highly capable.
You need to upload it to a server. You can't open it locally because of security issues.
Thanks. I'll try it!
I'm always shocked to see this question come up about 10 times a month :\
Because in cs2 no notification about it and search by "html5 publish" on this site does nothing.
If you want to publish or host something on a webserver, having a basic grasp of how a web server works might come in handy.
The fact construct 2 doesnt explain this is logical ....
Its like, You dont ask the local baker to fix your car, right ?
Here is a solution:
download and install wamp (free, windows apache mysql php) and start it.
Dump the entire exported folder in your c:\wamp\www folder.
Then open a browser and got to: localhost/YourExportedGameFolderName
In project folder there are no signs what it needs web server.
You were right. I uploded it to my server and it works!