playMaker

Author Topic: Array Multidimensional (2d) List Sort & Shuffle  (Read 2984 times)

dudebxl

  • Hero Member
  • *****
  • Posts: 602
Array Multidimensional (2d) List Sort & Shuffle
« on: December 23, 2015, 12:47:31 PM »
Sort or shuffle 2 arrays of the same length (var type has no importance - can be string/int - etc) with a start base range as option. Mimics Multidimensional / 2d array. This will keep both arrays synced when sorting or shuffling.

On ecosystem or https://snipt.net/dudebxl/


Note: Using the same principle, I am able to sort hashtables but for some odd reason the gui of the hashtable is always changing the order. Maybe JeanFabre could elaborate on this as the action is built and code wise functioning but not useful if the gui changes the order. Index 0 is always in the middle or near the bottom or something..
« Last Edit: December 23, 2015, 12:55:38 PM by dudebxl »

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Array Multidimensional (2d) List Sort & Shuffle
« Reply #1 on: December 23, 2015, 04:16:42 PM »
Cool! Thanks for all the awesome actions you have been making  :)
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!