Daily 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 methodprogramming.dev Ategon ( @Ategon@programming.dev ) M Godot@programming.dev • 2 months ago message-square3fedilinkarrow-up145
arrow-up145playDaily 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 methodprogramming.dev Ategon ( @Ategon@programming.dev ) M Godot@programming.dev • 2 months ago message-square3fedilink
minus-square pe1uca ( @pe1uca@lemmy.pe1uca.dev ) linkfedilink6•2 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.