Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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
I need to set up 26 keyboard characters in code.
I can't seem to find an equivalent of
for "loop" = 0 to 25 do
KeyboardLetter set text chr(loopindex+97)
How can I do the chr bit?
Develop games in your browser. Powerful, performant & highly capable.
this will result in a string.
try str() to convert a string to a number.
Sorry, I wasn't clear I want the number to be converted to its ascii character
i.e., 65 would be "A" and 97 would be "a"
Ok I am not sure if this is the best way but this seems to work
where temp goes from 97 to (97+26)
Browser.ExecJS("String.fromCharCode("&temp&")")