Construct 2 has built-in URLEncode and URLDecode expressions, you need to use them when posting AJAX requests.
The performance of comparing strings vs. numbers is irrelevant. Despite that the best solution is probably —'s! If you mark the variables const then that guarantees they cannot be changed, and also prevents them appearing in the 'Set variable' dropdowns.
We always require it because it makes it quicker to deal with the many bug reports we get and also eliminates the possibility the steps you describe do not reproduce the issue because you forgot something. Reopened, will investigate soon.
Closing, please always attach a .capx, it's required.
Construct 2 does not generate human-readable Javascript code after export. If you want to use Javascript in Construct 2, use the Javascript Plugin SDK.
Going to close this as a one-off, if you can provide any more information please add it here and I'll consider re-opening it.
Have you tried contacting Ludei about this? Our audio engine works fine in browsers, so presumably this is a CocoonJS problem that needs to be fixed.
You need to provide more information about the problem, e.g. screenshots of what you're seeing, what you expected to see, and the .capx of your project etc.
Develop games in your browser. Powerful, performant & highly capable.
You can by editing startdlg.xml in the install directory, but it's not very convenient.
Why not use the 'pick nearest' condition?
Did you check for browser errors?
We can't really do anything about this without the exact text of the error message or full steps to reproduce reliably. Can you provide either?
Member since 21 May, 2007 Last online 27 Oct, 2026
The official blog for all things Construct and Scirra run by our employees!
Wider technology issues from Ashley's perspective.