You can use code in a number of places within GameMaker: Studio, from objects, to rooms and instances, and there are a number of built in functions that make your life easier when programming, however it is often necessary for you to create your own functions to do a specific task, or to condense a large section of code into a more manageable chunk, or even to be able to re-use a particular code block in many different places. That is why GameMaker: Studio gives you the ability to create scripts.
What Is A Script?
Scripts are written using GML (the Game Maker Language, covered in the Reference section), which is the built-in programming language that GameMaker: Studio uses. Once you become more familiar with GameMaker: Studio and want to use it to its fullest extent, it is advisable to
...
Read more »