3 Replies Latest reply on Jun 20, 2014 7:43 AM by kglad

    Calling the next number in an array through a function?

    Kilzar

      ow do I request the next number in an array?

      For example - currently being used for a loop:

      for (i=0; i = levelSettings[0]; i++)

      But when the function (named - NextLevel() ) is called I would like that loop to call the next number in that array.

      Example:

      (i=0; i = levelSettings[1]; i++) //Not the change in the levelSettings[x]

      I would like this to work for all subsequent numbers in that particular array - so it can continue through to levelSettings[10] and so on.

      Cheers!