mirror of
https://github.com/CodeninjasWS/GDPFunctions.git
synced 2024-12-18 03:24:35 -05:00
50 lines
1.9 KiB
HTML
50 lines
1.9 KiB
HTML
<!--Code Ninjas | Jackson Hagood-->
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Timers</title>
|
|
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
|
|
<link rel="icon" href="images/icon.png">
|
|
<style>
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="sidenav">
|
|
<a href="functions.html"><h2>GDP Functions</h2></a>
|
|
<br>
|
|
<h2><a href="position.html">Position</a></h2>
|
|
<h2><a href="rotation.html">Rotation</a></h2>
|
|
<h2><a href="scale.html">Scale</a></h2>
|
|
<h2><a href="collision.html">Collision</a></h2>
|
|
<h2><a href="appearance.html">Appearance</a></h2>
|
|
<h2><a href="timers.html">Timers</a></h2>
|
|
<ul id="contents">
|
|
<li><a href="#createtimer">createTimer()</a></li>
|
|
</ul>
|
|
<h2><a href="animation.html">Animation</a></h2>
|
|
<h2><a href="attributes.html">Attributes</a></h2>
|
|
<h2><a href="miscellaneous.html">Miscellaneous</a></h2>
|
|
</div>
|
|
<div name="Timers"> <!--done-->
|
|
<h1>Timers</h1>
|
|
|
|
<div class="item"> <!--done-->
|
|
<a name="createtimer">
|
|
<h3>createTimer()</h3>
|
|
<p>The function createTimer() will make a timer that delays certain code. The function takes in two parameters. The first is the time, in milliseconds, before the function is executed. The second parameter is the function that will be executed after the delay.</p>
|
|
<pre><code>createTimer(1000,function(){});
|
|
//starts a timer of 1000 milliseconds
|
|
//after the timer, function() will be executed</code></pre>
|
|
<h4>See Further:</h4>
|
|
<ol class="more">
|
|
<li>Rain Catcher Part 5</li>
|
|
<li>Rain Catcher Part 6</li>
|
|
</ol>
|
|
</a>
|
|
</div>
|
|
|
|
<!--cleanupTimers()-->
|
|
</div>
|
|
</body>
|
|
</html>
|