Back to Browse

Weighted Randomness in GameMaker

1.4K views
Sep 23, 2024
19:52

Let's say you want a random outcome in GameMaker, but you want some outcomes to be more likely than others. Here's how we can do this! The Monty Hall problem: https://en.wikipedia.org/wiki/Monty_Hall_problem The code: https://github.com/DragoniteSpam-GameMaker-Tutorials/TutorialWeightedChance GameMaker Studio 2.3 playlist: https://www.youtube.com/playlist?list=PL_hT--4HOvrfuDcYrTufdpgwoALAczPR2 GameMaker 3D playlist: https://www.youtube.com/playlist?list=PL_hT--4HOvrcML9uqHe4fwBVTm650Vy3V 0:00 Introduction 1:26 The simplest way to do weighted randomness 3:17 Using the choose() function for weighted randomness 8:04 A general-purpose weighted random function 15:46 A more general-purpose weighted random function 18:28 The end Wishlist Wizarducks on Steam! https://store.steampowered.com/app/2769920/Wizarducks_and_the_Lost_Hat/ Thumbnail: Dice by Lukman Hakim from Noun Project (CC BY 3.0) #GameMaker #GameMakerRandomness - - - - - I've now made that Patreon: https://www.patreon.com/wizardragon That promised social media link spam. https://twitter.com/DragoniteSpam Transition / idle music is by my old friend Kamex: https://www.youtube.com/user/GreatGabite/about Rate, comment, subscribe, watch more, enjoy!

Download

0 formats

No download links available.

Weighted Randomness in GameMaker | NatokHD