0 Favourites

How do I select an array?

  • I might be missing something really basic because the obvious answer isn't working.

    Let's say I have 10 array objects and I set value.at(0) to a number, let's say 1 to 10 also (i.e the 1st contains 1, the 2nd contains 2 etc). To get the array that contains the number 5 at value.at(0), don't I just do..

    myarray.at(0) = 5... (so that's 'myarray -> Compare at X, X = 0, = to, Value = 5).

    Since I put the number 5 into the 5th array, shouldn't the above 'pick' that instance, so I now have 1 array picked?

    This seems like very basic stuff to me and it's how C2 works, but it's not working in my project and I'm running it through the debugger. My arrays definitely contain the values that I'm searching for, but it's just skipping past the event as though it's found nothing. Do arrays work differently?

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • It does actually work like this, I've just made a sample new project and it works fine, so there's something wrong with my program I guess. How do I delete / close the thread?

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