Question re: String Parser object and ASCII values

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • I'm creating my own system of fonts for a project I'm working on. The way it works is that it retrieves the ASCII value of a letter/symbol, which then points to the corresponding X-index of an array of that value, telling it what graphic to use. The problem is that I've been using the String Parser Object for this and it's worked fine until I decided to add some fancy letters like Å, Ä, Ö, Ü etc... and it seems that the String Parser Object doesn't have any support for the extended ASCII character codes, either that or it's a bug, as it returns the wrong values for those particular symbols. Anyone know which it is? If it's a bug I could just make a bug report and wait for it to be fixed.

    As alternatives, I tried the ASCII Character Object which works fine, but it's unfortunately not cross-platform. My last resort is to simply add extra events for any symbols that require it but I'd prefer not to. Any ideas?

  • A very easy extension-less solution is just to put all the supported characters in one long string ("abc..."), and use the built in "find string in string" function to get the position of the character you're looking for (returns -1 if the character is not in your string).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!