AtegonMA to Godot · 4 months agoDaily Godot Tip #4: If you have an array of items that you need to pick a random thing from, Godot has a built in pick_random methodvideomessage-square3fedilinkarrow-up174arrow-down11
arrow-up173arrow-down1videoDaily Godot Tip #4: If you have an array of items that you need to pick a random thing from, Godot has a built in pick_random methodAtegonMA to Godot · 4 months agomessage-square3fedilink
minus-squarepe1uca@lemmy.pe1uca.devlinkfedilinkarrow-up10·4 months agoGood tip, just also good to remember there’s no way to control the seed of the generator, for example for a seeded world. For that use case you still need to manually run the generator you created with your seed to select an item.
Good tip, just also good to remember there’s no way to control the seed of the generator, for example for a seeded world.
For that use case you still need to manually run the generator you created with your seed to select an item.