Arrays and Object Angles

  • Thank you for taking the time to read my question

    I am new to arrays so forgive me for my ignorance. I would like to set an objects angle based on the value taken from a specific index in my array.

    When looking at the choices for using the array these are the options that stick out to me as recalling values from and index but I don't know which one to use:

    .At()

    .CurValue()

    .IndexOf()

    Is one of these options the one to use? And if so whats the proper way to have the system retrieve the value from the specific index of (1, 1) and apply that to the Set Object Angle?

    Thank you again and any help is greatly appreciated

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • From the manual:

    http://www.scirra.com/manual/108/array

    Use the .At() expression to retrieve values.

    So you would use this expression in the set angle action:

    Array.At(1,1)

  • Oh....my.....GOD!

    Thank you so much. I thought that this was the command I was looking for, but when I tried using it some strange things happened so I figured I better just ask. I guess there must be and issue somewhere else that is causing the conflict.

    Thank you again for the quick response!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)