<aside> 💡 Warning : using randomisation will impact memory usage as explained in Randomisation : why it’s a mess
</aside>
Some of the nodes / resources have a “random” category with properties which allows you to randomize all the properties mentioned above. This is how to use them :
Leaving default values disable the randomisation.
It starts with a Randomisation Chance
property. If some of the properties below are activated, Randomisation Chance is the chance, between 0 and 1, that the randomisation will be active. If not, all the properties below are fully disabled and no randomisation will happen.
Every property of a node / resource that can be randomized follows the same naming pattern.
*Name* + Choice
: the type of this random property can be an array or a string with “;
” as delimiter. They act like lists you can add values to. When the property is used, it will randomly take one of the values in that list. If it’s an array, it expects the same value types as the original property.*Name* + Variation
: randomly tweaks the original property following a classic normal distribution with the original property value as the mean, x as the variance and y & z as the lower and upper bounds (in case you want to limit the values between 2 bounds. Else, y and z can be left as default).*Name* + Chances
: chance that the property will be enabled / disabled from 0 to 1.If you want to make changes to the randomisation at runtime (I advice not to), there are some functions for that, see random_remove(BulletProp resource ID, property name)
: remove the randomisation of a property in a resource.