bsp;<span class="element-name">setZIndex</span><wbr><span class="parameters">(int&nbsp;zIndex)</span></div>
<div class="block"><p>
 Sets the z-index of this <code>Entity</code> used to compute the display order for overlapping entities.
 </p>
 <p>
 An <code>Entity</code> with a higher z-index is displayed over one with a smaller z-index.
 </p>
 In case of equal values, the most recently created <code>Entity</code> will be on top.
 <p>
 Default is 0.
 </p></div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><c