Commenting in programming is used to leave notes within code, or to temporarily stop sections of code from running. Comments can be placed anywhere within code. Commenting is useful when writing complicated code that you or others may need to look back on later.
There are 2 ways to leave comments in GML, and most other programming languages use this format too.
To comment a single line, use // To comment a section, start with/*and end with */
In the following examples, the commenting is highlighted, as it will be in all our examples and modules.
You should try to comment all of your work. You will likely return to it and it's beneficial to be able to pick up what you were doing quickly.