• 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.

Question - Code Importing a gmx file into gamemaker 2 put slashes in front of apostrophes

M

maddiemelon

Guest
Hello,
I just imported a gmx file that I had made in gamemaker studio 1.4 into gamemaker studio 2, and everything works great, it's just that it put a backslash in front of all my apostrophes in all my strings of text. For example, "It's" became "It\'s". Any way to fix this?

Thanks!
 

TheSnidr

Heavy metal viking dentist
GMC Elder
The backslash won't actually appear ingame. The apostrofe can be used to define the start and the end of a string, but if you place a backslash in front of it, the engine ignores it.
 
M

maddiemelon

Guest
The backslash won't actually appear ingame. The apostrofe can be used to define the start and the end of a string, but if you place a backslash in front of it, the engine ignores it.
oh, sorry let me clarify, I'm not talking about the backslash appearing in front of the apostrophe that begins the string. It appears inside the string, so it does appear in game. Like, when I put a word with an apostrophe in it inside the string, it put a backslash in front of it, like "It\'s", and then gamemaker writes it like that in the game.
 
Top