How do I move random cells between diffrent arrays?

0 favourites
  • 2 posts
From the Asset Store
This is a code so you can see the same skin on all screens (peers). Each peer gets a skin, in addition to 4 directions t
  • I am making a game with an inventory array system loaded from JSON file (this is working), but I need to draw a random items (cells) in this array and into an selection of a few items in secondary array (struggling with the correct syntax). Then I need to to target these items in the secondary array, and lastly select specific items from the secondary array and put into a third array.

    I am new to construct and JS, thus struggeling with the syntaxt to make this. Can anyone please help?

    Thank you

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You can check out all the info in the manual or example project files, also there are tutorials. In general you select the array object and use compare x,y to locate values. Array.at(x,y) targets specific values.

    For example if you have array1 and array2. You can set the first value in array 2 to the first value in array 1 by selecting array2 object in events and saying set 0,0 to array1.at(0,0)

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