gm-docs-parser 1.0.0

A collection of typings for GameMaker Studio 2 manual pages
Documentation
<?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.2.2.6";
  
//]]></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>Paths</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="Page outlining the different functions and variables associated with Paths"/>
  <meta name="rh-index-keywords" content=""/>
  <meta name="search-keywords" content="Paths"/>
</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="Paths">
        <span>Paths</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>Paths</h1>
  <p>GameMaker Studio 2 has an extensive collection of functions and built-in variables for using paths within your game. This section deals with the basic ones that are used when dealing with paths that have previously been created in the <a href="../../../../The_Asset_Editors/Paths.htm">Path Editor</a>,
    but further functions exist that permit you to create your own paths using code, and to manipulate them in various ways.</p>
  <p>The following basic functions exist that deal with paths:</p>
  <p> </p>
  <ul class="colour">
    <li><a href="path_start.htm">path_start</a></li>
    <li><a href="path_end.htm">path_end</a></li>
    <li><a href="path_get_closed.htm">path_get_closed</a></li>
    <li><a href="path_get_kind.htm">path_get_kind</a></li>
    <li><a href="path_get_length.htm">path_get_length</a></li>
    <li><a href="path_get_name.htm">path_get_name</a></li>
    <li><a href="path_get_number.htm">path_get_number</a></li>
    <li><a href="path_get_point_speed.htm">path_get_point_speed</a></li>
    <li><a href="path_get_point_x.htm">path_get_point_x</a></li>
    <li><a href="path_get_point_y.htm">path_get_point_y</a></li>
    <li><a href="path_get_precision.htm">path_get_precision</a></li>
    <li><a href="path_get_speed.htm">path_get_speed</a></li>
    <li><a href="path_get_x.htm">path_get_x</a></li>
    <li><a href="path_get_y.htm">path_get_y</a></li>
  </ul>
  <p> </p>
  <p>To aid with debugging paths, you have a function to draw it to the screen too:</p>
  <ul class="colour">
    <li><a href="../../Drawing/Basic_Forms/draw_path.htm">draw_path</a></li>
  </ul>
  <p> </p>
  <p>Each instance of an object also has a series of built-in variables designed to make using paths eaiser, and these variables are listed in the following section:</p>
  <ul class="colour">
    <li><a href="Path_Variables/Path_Variables.htm">Path Variables</a></li>
  </ul>
  <p> </p>
  <p>Finally, it is possible to manipulate the contents of a path as well as create new paths when the game is running. The functions that enable these things and more are available from the following section:</p>
  <ul class="colour">
    <li><a href="Path_Manipulation/Path_Manipulation.htm">Path Manipulation</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="../Asset_Management.htm">Asset Management</a></div>
        <div style="float:right">Next: <a href="../Scripts/Scripts.htm">Scripts</a></div>
      </div>
    </div>
    <h5>© Copyright YoYo Games Ltd. 2020 All Rights Reserved</h5>
  </div>
  <!-- KEYWORDS
Paths
-->
  <!-- TAGS
path_functions
-->

</body></html>