Simple Array Shuffle Question?

0 favourites
From the Asset Store
Simple but fun word game. Restore an original word from shuffled letters.
  • what "System: LoopIndex < 100" does?

    It prevents infinite loop. Normally it does nothing, but if you make a mistake in your code and create an infinite loop, the preview window or even the editor window may freeze.

    That's why I always add this condition to While loops.

  • Got that.

    One lit doubt.

    The Array Sufule logic using AdavceRanodm you gave works great when

    but when I transpose it to like this

    It doesn't work. My question is what things I should have changed here in order to make that work even when the ARRAY JSON becomes transposed 👇

    (I tried to change

    -> AdvancedRandom: Create permutation with Array_PICTURE_NAME.Height values starting at 0

    and

    + Array_PICTURE_NAME: Value at (0, AdvancedRandom.Permutation(n)) = ""

    and this

    -> PICTURE_SET: Set animation to Array_PICTURE_NAME.At(AdvancedRandom.Permutation(0), (n)) (play from beginning)

  • PICTURE_SET: Set animation to Array_PICTURE_NAME.At(AdvancedRandom.Permutation(0), (n)) (play from beginning)

    Try this:

    PICTURE_SET: Set animation to Array_PICTURE_NAME.At(0, AdvancedRandom.Permutation(n)) (play from beginning)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks Dop, Now I understand why you said its not a bug.

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