title: How do I read the properties of a KineticJS Sprite other than X and Y coords?
body: <p>I am new to using <strong>KineticJS</strong> and am using it to develop a simple 2D game which involves sprites, collision detection etc.</p>
  
  <p>I need to access various properties of my <strong>sprite</strong> object (let's call it spriteObj here).</p>
  
  <p>I can get to the sprite coordinates using <strong>spriteObj.getX()</strong> and <strong>spriteObj.getY()</strong> and this works perfectly.</p>
  
  <p>Now I need to also retrieve the other properties of the sprite, such as <strong>height</strong> and <strong>width</strong>, but there does not seem to be a way to do it.  Specifically if I have an <strong>animation</strong> within my sprite, how can I retrieve the current frame and/or the x, y, height, width of that animation frame.</p>
  
  <p>What I really need is something like <strong>spriteObj.getWidth()</strong> and <strong>spriteObj.getHeight()</strong> but these do not exist.  Any suggestions please? I can see nothing on the html5 tutorials page for this (<a href="http://www.html5canvastutorials.com/kineticjs/html5-canvas-kineticjs-sprite-tutorial/%29" rel="nofollow">see here</a>)</p>
  
  <p>Thanks,
  Owen</p>