nuleaf's Forum Posts

  • 10 posts
  • Thank you very much.

  • I have these two arrays, namely ArrayForSequencying and ArrayForMatchGame.

    I need to replace the the 2nd value in ArrayForMatchGame based on the 3rd value in Array for Sequencing

    if the 1st value of ArrayForMatchGame <> 0 and is equal to the 2nd value in ArrayForSequencing:

    ArrayForSequencing

    0 with 2, 5, 1

    1 with 3, 4, 1

    2 with 4, 1, 2

    3 with 5, 2, 2

    4 with 6, 3, 3

    and so on

    ArrayForMatchGame

    0 with 0,0 should be left as is

    1 with 3,0 should become 3, 3

    2 with 5,0 should become 5, 1

    3 with 2,0 should become 2, 2

    4 with 1,0 should become 1, 2

    5 with 4,0 should become 4, 1

    and so on

    I have tried various combinations of "For each XY element" or "For each X element" "For" loops but I am still struggling to get it right. (I tried pasting the image to this post, but nothing comes out when I page between the img placeholders.) Thanks in advance.

  • Got it, thanks. I glossed over and missed it previously.

  • Thanks, I'll try it.

  • I am sorry. I should have made myself clearer.

    I am aware that when a member submits a new posting to the forum, a checkbox is available to switch "on" so that the member is automatically notified of replies. Twice now, however, I forgot to switch this checkbox 'on' before I submitted my post. Is there a way a member can turn this feature 'on' for a posted question for a post that has been submitted?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is there a way to change to 'auto notify replies' if the initial posting was done with this switched on?

  • I have a two dimensional array with width 25 and height 3. The values are randomly assigned. How do I look for the instance of the array when the value is 1,0,0 and replace it with 1,1,0? In the debug display example below the line I need to change is line (IID?) 14.

    .

    .

    12 8,9,0

    13 19,10, 0

    14 1,0,0

    15 22,11,0

    16 6,3,0

    should be changed into

    12 8,9,0

    13 19,10, 0

    14 1,1,0

    15 22,11,0

    16 6,3,0

    I've been trying in vain. Thanks in advance.

  • Thanks, Matt and blackhornet.

  • I need to arrange the items in my array in a random sequence. How do I come up with a random sequence?

    Eg: In my game, I will need to arrange 24 items. If only have 5 items to arrange, sample random sequences are:

    3-2-5-4-1

    1-4-2-3-5

    2-5-1-4-3

    I believe that if I can have a way to random list the number 1 to 24 in a non-repeating sequence, I can arrange the items following the sequence. However, someone may have an even simpler suggestion.

    (I'm new and have been looking and trying things out but no luck so far...)

  • Please assist. I purchased a game that uses I tried to use the plug-in rex_time_awayL but Construct 2 tells me that I cannot use it due to this error:

    Unable to load plug in... plugins\rex_time-awayL\': Cannot open file 'C:\Users\...\plugins\rex_time_awayL\common.js'

    A similar issue was posted in the forum recently 27 Dec 2016 (). It had this reply:

    You should contact the plugin's author and ask for a fix. It seems to me that it's not compatible with the newest version of C2.

    Thanks.

  • 10 posts