<p>The function .state() will return the state property of an object. Most commonly, .state() is used to find the game's current state. The function takes in no parameters.</p>
<pre><code>var state = $this.scene.state();
//sets 'state' to the current state of the 'scene'</code></pre>
<h4>See Further:</h4>
<olclass="more">
<li>Meteors Deluxe</li>
</ol>
</a>
</div>
<br>
<divclass="item"><!--done-->
<aname="text">
<h3>.text()</h3>
<p>The function .text() can change the text property of a label. The function takes in one parameter: the desired text of the label.</p>
<pre><code>object.text("string");
//sets the text of the 'object' label to 'string'</code></pre>