title: App Game Kit BASIC language array out of bound, array empty
body: <p>I am currently using App Game Kit and trying to learn the BASIC language at the same time. I have this error that have happened in this Function, its in this line:<br/><br/>
  The error show:</p>
  
  <pre><code>Array index out of bounds, Index: 0, Array Length: &lt;Empty&gt; in GameRenderer.agc at line 14
  </code></pre>
  
  <p><br/><br/>
  <code>holeSprites[I] = holeSprite</code>
  <br/><br/>
  And this is the file that contains the line:
  <br/><br/></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>global DIM holeSprites[5]
  
  Function RenderHole()
   holeImage = LoadImage ( "Orb.png" )
  
   FOR X = 1 to 2
    FOR Y = 1 to 2 
     I = 0
     holeSprite = CreateSprite ( holeImage )
     SetSpriteSize(holeSprite, 70, 100)
     SetSpritePosition ( holeSprite, 100 * X, 170 * Y)
     holeSprites[I] = holeSprite
     inc I
    NEXT Y
   NEXT X 
  EndFunction </code></pre>
  </div>
  </div>
  
  <br/>
  ---------------------------------------------------------------------- <br/>
  I need help in learning BASIC programming language thanks!</p>