How do I...Arrays

0 favourites
  • 3 posts
From the Asset Store
Supports 1D, 2D, 3D arrays. Import and export arrays in JSON format
  • Hey, i read Arrays manual, and i managed to create one , but i had a problem.

    Look, i need a "panel" of 10 invisible buttons. so i created an Array, height 10, widht and depth 1.

    now, i created a function wich executes some actions for each of the Array "squares" or "places" .

    Then, what i need is to know WICH "invisible button" so wich PLACE of the array was touched, so i can pass it by parameter.

    For example:

    Square 5 of the array is touch, thene xecute the function and pass the 5 by parameter.

    Thanks you, hope you understood.

  • and what with this by the way, i added an array object, all okay, then i added an event with On touch ArrayObject.

    Then when i touch on the screen (on the game ofc) it crashes.

    screenshoot: prntscr.com/16dr3e

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Post a capx or screenshot of relevant events, it is really hard to figure otherwise what you have done. Array itself is not 'physical' object in game world that you can touch.

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