Tony Brice
Member
I'm writing a card game which requires 12 items of data for each of the 46 cards so I'm using a ds_grid to store all the data. I've now come to the part where I need to shuffle all the cards and then allocate half the deck to each player so I thought I'd use the ds_grid_shuffle command.
This shuffles all the data in every field and doesn't preserve the data correctly afterwards because items are everywhere and all I need it to do is keep the data on the X side all in the same place and just change it's Y position in the grid.
I know you can sort lines by using one of the columns but that's not actually shuffling the cards as I'm always going to end up with the same ones in each pile. Anyone know how I can get a shuffle to work the same way?
This shuffles all the data in every field and doesn't preserve the data correctly afterwards because items are everywhere and all I need it to do is keep the data on the X side all in the same place and just change it's Y position in the grid.
I know you can sort lines by using one of the columns but that's not actually shuffling the cards as I'm always going to end up with the same ones in each pile. Anyone know how I can get a shuffle to work the same way?