<?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.11";
//]]></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>Timelines</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 Timelines"/>
<meta name="rh-index-keywords" content=""/>
<meta name="search-keywords" content="Timelines"/>
</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="Timelines">
<span>Timelines</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>Timelines</h1>
<p>Timelines are a powerful mechanism for controlling events in your game, and are based on "moments", where a "moment" is simply a single game step. These timelines are generally created from the <b>Asset Browser</b> using the <a href="../../../../The_Asset_Editors/Timelines.htm">Timeline Editor</a> in a similar way to an object, ie: you create a timeline, then in each moment that you require it to perform an action you add some code or a DnD™ icon for it to perform. Once created, you can then stop, start, and manipulate timelines through code.
You can even modify individual moments by defining a <a href="../../../GML_Overview/Script_Functions.htm">script function</a> and adding it into the timeline dynamically from a controller object (for example), making this a very powerful and versatile
tool when creating your games.</p>
<p>The following functions are for adding and manipulating Timelines from within your game:</p>
<p> </p>
<ul class="colour">
<li><a href="timeline_exists.htm">timeline_exists</a></li>
<li><a href="timeline_get_name.htm">timeline_get_name</a></li>
<li><a href="timeline_add.htm">timeline_add</a></li>
<li><a href="timeline_delete.htm">timeline_delete</a></li>
<li><a href="timeline_moment_add_script.htm">timeline_moment_add_script</a></li>
<li><a href="timeline_moment_clear.htm">timeline_moment_clear</a></li>
<li><a href="timeline_clear.htm">timeline_clear</a></li>
<li><a href="timeline_size.htm">timeline_size</a></li>
<li><a href="timeline_max_moment.htm">timeline_max_moment</a></li>
</ul>
<p> </p>
<p>The following variables are "built in" to all instances to make working with Timelines easier and give you control over them:</p>
<p> </p>
<ul class="colour">
<li><a href="timeline_index.htm">timeline_index</a></li>
<li><a href="timeline_running.htm">timeline_running</a></li>
<li><a href="timeline_speed.htm">timeline_speed</a></li>
<li><a href="timeline_position.htm">timeline_position</a></li>
<li><a href="timeline_loop.htm">timeline_loop</a></li>
</ul>
<p> </p>
<p>Note that you can find further information on instance variables here: <a href="../Instances/Instance_Variables/Instance_Variables.htm">Instance Variables</a>.</p>
<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="../Objects/Objects.htm">Objects</a></div>
</div>
</div>
<h5>© Copyright YoYo Games Ltd. 2020 All Rights Reserved</h5>
</div>
<!-- KEYWORDS
Timelines
-->
<!-- TAGS
timeline_functions
-->
</body></html>