• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Issue in Docs

  • Thread starter CaptainTechnicality
  • Start date
C

CaptainTechnicality

Guest
In the docs page for keyboard input in GML, there is an example code snippet for ord():

if keyboard_check(ord('A'))
{
hspeed = -5;
}
However, this is not correct, as A should be in double quotes, not single quotes.
 
K

Kenjiro

Guest
Hibba dibba da dibba do.
 
Last edited by a moderator:

Perseus

Not Medusa
Forum Staff
Moderator
@CaptainTechnicality: Documentation errors and all sorts of bugs should be reported via the bug report form at Help -> Report A Bug in the GameMaker IDE. But since it would be a quick fix, I'll tag the person who writes the manual here (@Nocturne) just in case he doesn't notice it by himself. Thanks for pointing it out!

@Kenjiro: Unless it's a very recent change (which was very unlikely to happen in the first place), single quotes can no longer be used in GMS 2. The ability to use them has been removed to promote more common syntax among users.
 
Top