<p>The function .isTouching() will return whether or not and object is in contact with another item. The function takes in one parameter, the object that is being detected.</p>
<pre><code>var bool = object.isTouching(object2);
//sets variable 'bool' to whether or not 'object' is touching 'object2'</code></pre>
<h4>See Further:</h4>
<olclass="more">
<li>Zapper Part 2</li>
<li>Wall Blaster</li>
</ol>
</a>
</div>
<br>
<!--.playerHit()-->
<divclass="item"><!--done-->
<aname="toggledraggable">
<h3>.toggleDraggable()</h3>
<p>The function .toggleDraggable() will change an object's draggability. In other words, if an object is draggable, .toggleDraggable() will make it undraggable. If an object is not draggable, .toggleDraggable() will make it draggable. .toggleDraggable() takes in no parameters.</p>
<pre><code>object.toggleDraggable();
//changes the draggability of 'object'</code></pre>
<h4>See Further:</h4>
<olclass="more">
<li>Ninja Supplies</li>
</ol>
</a>
</div>
<br>
<divclass="item"><!--done-->
<aname="draggable">
<h3>.draggable()</h3>
<p>The function .draggable() sets whether or not an object is draggable. The function takes in one parameter, true or false, to set the draggability. The function can also return whether an object is draggable.</p>