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

GameMaker A Little help with a Syntax Error?

N

Noah Bitecofer

Guest
I'm trying to run a program but the thing keeps saying "unexpected syntax error on line 2 of step". I reviewed the step event but can't seem to find what's wrong with the code. Any help?

My code is as follows:
Screenshot (70).png
 

TheouAegis

Member
Try deleting all of the line breaks oh, so that everything is all on one line with no spacing, then go through and put in the line breaks again. Maybe there is an invisible character.
 
Top