How do I fetch multiple values from array?

0 favourites
  • 3 posts
From the Asset Store
Fetch Quest
$19.99 USD
Fetch Quest 1 music pack is a collection of 10 in-game music loops.
  • Hi!

    I am working on a warehouse application and I am using an Array to store information.

    I am having trouble retrieving all values from the y-axis of the Array. I have a search function where you can select a warehose row (x-axis of the Array) but when I try to retrieve all the Y-axis values of that row I only get the first one. Need help..

  • You will need to share a capx or upload a screenshot of your events so that we can take a look and see how we can help you out.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm no expert here but it sounds like a creating a function with a loop and two local variables might be something to consider. example (psuedo code):

    on function "retrieve data"

    local variable arrayX = (put the desired x value here)

    local variable i = 0

    while i < array.height

    retrieve the value here at array(array.x,i)

    i = i+1

    then call the function "retrieve data" where you need it.

    Again I'm no expert with little experience with arrays but maybe this helps a bit.

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