Do I Need to Use Semicolons when I Code in Game Maker?


In Game Maker, when you code, you usually don't need semicolons at the end of lines. But there are some cases where you do need to put them in!

If you create a variable that is used only for one coding need, you put var in front of the variable you are declaring. Then you can go on and code away, right? No quite...

You have to put a semicolon after this line. If you don't, you'll get an error! (See above image)

When you place a semicolon after this line, there is no error! (See below image)

Keep that in mind!

Page updated: March 23rd, 2015 @ 6:21 AM Eastern Time
To help organize our content, all of our game creation tutorial content is moving to our other site:
The move will take about two months to fully complete, so stay tuned!

Game Making Tutorials
Find tutorials about your favorite game creation software! Use the navigation below!

Game Maker: Studio
Help, References, and Tutorials
RPG Maker Fes
Help, References, and Tutorials
Help, References, and Tutorials

Need Help?
Search answers to game development questions or ask a question yourself
Get exclusive updates from!
Join the Email List
Download Books
Search Downloadable Books from
Copyright 2010-2018
All Rights Reserved.