80 lines
3.0 KiB
HTML
80 lines
3.0 KiB
HTML
<html>
|
|
<head>
|
|
<title>GML Language Overview</title>
|
|
<link href="style.css" rel="stylesheet" type="text/css">
|
|
</head>
|
|
<body background="images/back.gif">
|
|
<!--START-->
|
|
|
|
<h1>GML Language overview</h1>
|
|
|
|
<i>Game Maker</i> contains a built-in programming language. This
|
|
programming language gives you much more flexibility and control than the
|
|
standard actions. This language we will refer to as GML (the <i>Game Maker
|
|
</i> Language). There are a number of different places where you can type
|
|
programs in this language. First of all, when you define scripts. A script
|
|
is a program in GML. Secondly, when you add a code action to an event. In
|
|
a code action you again have to provide a program in GML. Thirdly, in the
|
|
room creation code. And finally, wherever you need to specify a value in
|
|
an action, you can also use an expression in GML. An expression, as we
|
|
will see below is not a complete program, but a piece of code resulting in a
|
|
value.
|
|
|
|
<p>
|
|
In this chapter we will describe the basic structure of programs in GML.
|
|
When you want to use programs in GML, there are a couple of things you
|
|
have to be careful about. First of all, for all your resources (sprites,
|
|
objects, sounds, etc.) you must use names that start with a letter and
|
|
only consist of letters, digits and the underscore '_' symbol. Otherwise
|
|
you cannot refer to them from within the program. Make sure all resources
|
|
have different names. Also be careful not to name resources self, other,
|
|
global, or all because these have special meaning in the language. Also
|
|
you should not use any of the keywords, indicated below.
|
|
|
|
|
|
<!--HELPONLY-->
|
|
|
|
<P>
|
|
Information on the GML language can be found in the following pages:
|
|
|
|
<p>
|
|
<blockquote>
|
|
<a href="401_01_program.html">A Program</a><br>
|
|
<a href="401_02_variables.html">Variables</a><br>
|
|
<a href="401_03_assignments.html">Assignments</a><br>
|
|
<a href="401_04_expressions.html">Expressions</a><br>
|
|
<a href="401_05_extra.html">Extra Variables</a><br>
|
|
<a href="401_06_addressing.html">Addressing Variables in Other Instances</a><br>
|
|
<a href="401_07_arrays.html">Arrays</a><br>
|
|
<a href="401_08_if.html">If Statement</a><br>
|
|
<a href="401_09_repeat.html">Repeat Statement</a><br>
|
|
<a href="401_10_while.html">While Statement</a><br>
|
|
<a href="401_11_do.html">Do Statement</a><br>
|
|
<a href="401_12_for.html">For Statement</a><br>
|
|
<a href="401_13_switch.html">Switch Statement</a><br>
|
|
<a href="401_14_break.html">Break Statement</a><br>
|
|
<a href="401_15_continue.html">Continue Statement</a><br>
|
|
<a href="401_16_exit.html">Exit Statement</a><br>
|
|
<a href="401_17_functions.html">Functions</a><br>
|
|
<a href="401_18_scripts.html">Scripts</a><br>
|
|
<a href="401_19_with.html">With Construction</a><br>
|
|
<a href="401_20_comment.html">Comment</a><br>
|
|
<a href="401_21_funcvar.html">Functions and Variables in GML</a><br>
|
|
</blockquote>
|
|
|
|
|
|
<!--ENDHELPONLY-->
|
|
|
|
|
|
<!--END-->
|
|
</body>
|
|
</html>
|
|
|
|
<!-- KEYWORDS
|
|
GML
|
|
game maker language (GML)
|
|
coding language
|
|
script language
|
|
language
|
|
|
|
--> |