How do I select an array?

0 favourites
  • 2 posts
From the Asset Store
A complete set of Graphic, User Interface element to build 2D mobile game or PC game.
  • 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 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, don't I just do.. = 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?

  • Try Construct 3

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

    Try 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)