No Revisions Have Been Made To This Page
Can you suggest an edit for this page? Click Here
GML Code Example
|index||The index of the grid to shuffle.|
This function can be used to randomize the positions of all
values in all cells within a grid.
NOTE: This function will shuffle the grid cells to the same positions every time the game is run afresh due to the fact that GameMaker: Studio generates the same initial random seed every time to make debugging code a far easier task. To avoid this behaviour use randomize at the start of your game. This is only true when testing and debugging the game, as the final executable package will not show this behaviour and will be random every play.