<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<script type="text/javascript" language="JavaScript">
//<![CDATA[
function reDo() {
if (innerWidth != origWidth || innerHeight != origHeight)
location.reload();
}
if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
origWidth = innerWidth;
origHeight = innerHeight;
onresize = reDo;
}
onerror = null;
//]]>
</script>
<style type="text/css">/*<![CDATA[*/
< !-- div.WebHelpPopupMenu {
position: absolute;
left: 0px;
top: 0px;
z-index: 4;
visibility: hidden;
}
p.WebHelpNavBar {
text-align: right;
}
-->
/*]]>*/</style>
<script type="text/javascript">//<![CDATA[
gRootRelPath = "../..";
gCommonRootRelPath = "../..";
gTopicId = "9.1";
//]]></script>
<script type="text/javascript" src="../../template/scripts/rh.min.js"></script>
<script type="text/javascript" src="../../template/scripts/common.min.js"></script>
<script type="text/javascript" src="../../template/scripts/topic.min.js"></script>
<script type="text/javascript" src="../../template/scripts/topicwidgets.min.js"></script>
<script type="text/javascript" src="../../whxdata/projectsettings.js"></script>
<link rel="stylesheet" type="text/css" href="../../template/styles/topic.min.css"/>
<link rel="stylesheet" type="text/css" href="../../template/Charcoal_Grey/topicheader.css"/>
<meta name="topic-status" content="Draft"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>GML Overview</title>
<meta name="generator" content="Adobe RoboHelp 2019"/>
<link rel="stylesheet" href="../../assets/css/default.css" type="text/css"/>
<meta name="rh-authors" content="Mark Alexander"/>
<meta name="topic-comment" content="Overview of GML"/>
<meta name="rh-index-keywords" content="GML Overview"/>
<meta name="search-keywords" content="GML Overview,GameMaker Language Overview"/>
</head>
<body>
<div class="topic-header rh-hide" id="rh-topic-header" onclick="rh._.goToFullLayout()">
<div class="logo">
</div>
<div class="nav">
<div class="title" title="GML Overview">
<span>GML Overview</span>
</div>
<div class="gotohome" title="Click here to see this page in full context">
<span>Click here to see this page in full context</span>
</div>
</div>
</div>
<div class="topic-header-shadow rh-hide" id="rh-topic-header-shadow"></div>
<!--<div class="body-scroll" style="top: 150px;">-->
<h1>GameMaker Language Overview</h1>
<p><span>This section of the manual contains all the information required to understand and use the </span>GameMaker Studio 2<span> scripting language </span><b>GML</b><span>. The runtime functions in this language can be used to create your games and is added into objects from the </span> <a href="../../The_Asset_Editors/Objects.htm">Object Editor</a><span>, normally when you've chosen to make a new </span><a href="../../Introduction/The_Start_Page.htm">GameMaker Language Project</a><span>, although it can also be used along with </span> <a href="../../Drag_And_Drop/Drag_And_Drop_Index.htm">DnD™</a><span> (Drag and Drop)</span><span>. Below you can see a typical image of an object with the code editor open on an event:</span></p>
<p><img alt="Object, Events and Code Overview" class="center" src="../../assets/Images/Scripting_Reference/GML/Overview/Code_Overview_Main.png"/><span>Each event has its own tab in the editor and you can add, edit, or remove code from them at any time (for more information on events see </span> <a href="../../The_Asset_Editors/Object_Properties/Object_Events.htm">Object Events</a><span>). The code itself must have a basic structure and can contain resource indices, variables, functions, expressions, keywords... etc... all of which are explained in the sections below. If you are a novice to programming or making the switch from DnD™, it is recommended that you start with the page on</span> <a href="Basic_Code_Structure.htm">Basic Code Structure</a><span> and then read through all the other pages in theis section, testing code from each one within </span>GameMaker Studio 2<span> itself.</span></p>
<p> </p>
<ul class="colour">
<li><a href="Basic_Code_Structure.htm">Basic Code Structure</a></li>
<li><a href="Runtime_Functions.htm">Runtime Functions</a> </li>
<li><a href="Commenting_Code.htm">Commenting Code</a></li>
<li><a href="Variables_And_Variable_Scope.htm">Variables And Variable Scope</a></li>
<li><a href="Arrays.htm">Arrays</a></li>
<li><a href="Data_Types.htm">Data Types</a></li>
<li><a href="Instance_Keywords.htm">Instance Keywords</a></li>
<li><a href="Addressing_Variables_In_Other_Instances.htm">Addressing Variables In Other Instances</a></li>
<li><a href="Evaluation_Order.htm">Evaluation Order</a></li>
<li><a href="Expressions_And_Operators.htm">Expressions And Operators</a></li>
<li><a href="Accessors.htm">Accessors</a></li>
<li><a href="Script_Functions.htm">Script Functions And Variables</a></li>
<li><a href="Method_Variables.htm">Method Variables</a></li>
<li><a href="Structs.htm">Structs</a></li>
<li><a href="Language_Features.htm">Language Features</a></li>
</ul>
<p> </p>
<p> </p>
<p> </p>
<div class="footer">
<div class="buttons">
<div class="clear">
<div style="float:left">Back: <a href="../../Content.htm">Index</a></div>
<div style="float:right">Next: <a href="../GML_Reference/GML_Reference.htm">GameMaker Language Reference</a></div>
</div>
</div>
<h5>© Copyright YoYo Games Ltd. 2020 All Rights Reserved</h5>
</div>
<!-- KEYWORDS
GameMaker Language Overview
-->
<!-- TAGS
gml_language_overview
-->
</body></html>