GameMaker: How to Shuffle and Randomize an Array

preview_player
Показать описание
A quick way to shuffle or randomise an array in GameMaker. array_sort() is super flexible and has tons of uses!

Рекомендации по теме
Комментарии
Автор

They added array_shuffle() this video is pointless now lol, just use that instead =)

ShaunJS
Автор

Perfect! I had been struggling to find a way to do a game with turn based order system and having who goes first be random.

ultrasparrow
Автор

Is there any way to transfer the arrays of an object in one room to an object in another room? For example the second room is the level, while the first room is the equipment menu: the item has an array of 3 variables, the id of the character, the id of its slot and the id of the item in that slots. If the third variable of the array is zero, then it has nothing equipped in that slot. Once the equipment is chosen, the array will be transferred to the other room in the character object arrays where he will receive the upgrades of the equipped items.

guidomenicacci
Автор

Spawn Crawlings done it again! Too bad there is no tutorial on how to have sex I don't even know the 1st step I think you have to take your clothes off but I'm still trying to figure out why my integer is negative.

gamermasta
Автор

what's up with you new portrait, like a gril.😁

sixiangyang
Автор

I really like to use the Fisher–Yates shuffle algorithm for randomizing arrays

numi