moboster's Forum Posts

  • 6 posts
  • I got a 2D array eg like this

    2 2 2 3 3 3

    5 6 7 5 6 7

    How do i put that into a 6 values 1D array.

    so like 1Darray.At(0) = 2,5

    1Darray.at(5) = 3,7?

  • I did something like yours, what I did was make the text into sprites(images) instead of using the text function.

    Then highlight with a red color sprite.

    Setting multiple image points on the text sprites.

    Then I put the red borders, set it additive, so i can overlay it on top of the text sprites to "highlight" them.

    Control the red borders with events.

    You can do the same for audio as to how you control your borders.

  • I have 9 different sprites with 9 randomized animations inside of them.

    Is there a way to control it better instead of my own version.

  • construct.net/en/forum/extending-construct-2/addons-29/plugin-smart-random-105391

    Thank u so much for this.

    Appreciate the Fisher yates shuffle share as well, but it's a little complicated to comprehend for me.

    Solved with the plugin used.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • How do i do a loop for that without hard coding it myself.

    boxes 0's values != boxes[12345678]'s values

    boxes 1's values != boxes[02345678]'s values

    boxes 2's values != boxes[01345678]'s values

    boxes 3's values != boxes[01245678]'s values

    ...

    ...

    etc

  • What I'm doing is a simple 1D array filled with similar animation frames.

    In each sprite, there is 9 animation frames, all in the same order.

    there are 9 similar sprites with different names and UID.

    I have added the 9 sprites animation frames value to an array called Boxes.

    What I wanted to do is to simply randomize the value and not get duplicates.

    I can randomize the values but I can't remove duplicates.

    I've no idea what the syntax is.

    I've tried indexof curx = last index of curvalue, but can't seem to check it.

    TLDR;

    Array name = boxes

    Width : 9

    1 Dimensional array.

    X index value filled with Animation frames No.

    GOAL:

    When Boxes[0]'s value = Boxes[1] or 2,3,4,5,6,7,8,

    change the value.

    Repeat the same for every index.

    So i'll never get the same animation sprites.

    drive.google.com/file/d/1xVs5SHcU46S6UTTWOVw7VdtwVKpGCYSJ/view

  • 6 posts