Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Does anyone know if there's a way to pass variables in the URL in the preview window? When uploading to my server I can pass parameters using the Browser.QueryParam("variable") method this works well, but I can't test this in the preview windows as the URL can't be edited. Does anyone know a workaround without uploading every build to my server?
In the settings of Construct 3 you can modify the "Preview in" option so that it happens in a browser tab, then allowing you to modify the URL as much as you want.
Perfect, thanks! (I only wish you could change the settings on the fly instead of restarting construct, but that's for another post : )
You can always try to post it on the suggestion platform, but I have a feeling due to Construct being in a browser, this likely won't be an easy thing to implement, possibly impossible to.
Perhaps you should have a look into the remote preview ? This could allow you to open your preview directly in a regular browser, external to C3 and possibly still allow you to add elements at the end of your URL ?
Develop games in your browser. Powerful, performant & highly capable.
Thanks, it'll work fine locally in the browser, I just open up a small separate window to run the preview in.
I couldn't get url parameters in the remote preview to work, but for now I'm fine