Skip to content

Commit

Permalink
[Feature] fixed array link
Browse files Browse the repository at this point in the history
  • Loading branch information
gurpreetsinghmatharoo committed Oct 11, 2023
1 parent c613257 commit c4aed91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Manual/contents/GameMaker_Language/GML_Overview/Arrays.htm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Arrays</title>
<meta name="generator" content="Adobe RoboHelp 2020" />
<meta name="generator" content="Adobe RoboHelp 2022" />
<link rel="stylesheet" href="../../assets/css/default.css" type="text/css" />
<script src="../../assets/scripts/main_script.js" type="module"></script>
<meta name="rh-authors" content="Mark Alexander" />
Expand Down Expand Up @@ -168,7 +168,7 @@ <h3 class="dropspot">       Extended Example</h3>
<p class="dropspot">That short code will now spawn a random enemy in the game room, and it uses far less code than an &quot;<span class="inline">if / then / else</span>&quot; structure or even a &quot;<span class="inline">switch</span>&quot;, and as the array is initialized all together in the create event it is MUCH easier to edit and change any of those values as they are not <a class="glossterm" data-glossterm="hard-coded" href="#">hard-coded</a> into the rest of the project code.</p>
</div>
<p> </p>
<p>Also see: <a data-xref="{text}" href="../GML_Reference/Variable_Functions/Variable_Functions.htm#h"> </a></p>
<p>Also see: <a data-xref="{title}" href="../GML_Reference/Variable_Functions/Array_Functions.htm">Array Functions</a><a data-xref="{text}" href="../GML_Reference/Variable_Functions/Variable_Functions.htm#h"> </a></p>
<h2>Arrays as Function Arguments</h2>
<p>You can pass arrays into <a href="Script_Functions.htm">script functions</a> and <a href="Method_Variables.htm">method variables</a> as arguments, and modify those arrays anywhere inside the function. Doing so will modify the original arrays as well.</p>
<p>For example, this function simply changes the first three elements of the array passed into it:</p>
Expand Down Expand Up @@ -236,7 +236,7 @@ <h2 id="h">Copy on Write</h2>
<div style="float:right">Next: <a data-xref="{title}" href="Structs.htm">Structs &amp; Constructors</a></div>
</div>
</div>
<h5><span data-keyref="Copyright Notice">© Copyright YoYo Games Ltd. 2022 All Rights Reserved</span></h5>
<h5><span data-keyref="Copyright Notice">© Copyright YoYo Games Ltd. 2023 All Rights Reserved</span></h5>
</div>
<!-- KEYWORDS
Arrays
Expand Down

0 comments on commit c4aed91

Please sign in to comment.