If you've made a game with GameMaker during the past decade that opens web pages on some occasion,
you might have been recently hearing complaints from players about the game no longer successfully
doing so. This is a tiny post about what is that all about and how to fix it.
While developing HTML5 games using GameMaker Studio,
it may eventually come to your attention that the game
does not render at native resolution, depending on the device,
looking variously blurry as result.
This small post is about fixing that.
Illustrating why you should escape your URL parameters
If you are using HTTP requests in your GameMaker projects,
you may need to encode parameters in URLs accordingly
to prevent your requests from becoming accidentally
(or less accidentally, if user input is involved) malformed.
With some luck you may have already found the
script on YYG helpdesk, but there's a minor caveat - as of writing this post, it does not support Unicode, so any non-Latin glyphs will be lost in process. Also it's not as fast as it could be, coming from pre-GM:S days and all.
I have at one point implemented URL encoding for
and have now made a cleaner-looking, single-script version of the function.
This post is about that.