🎲Die Roller
is an Entity Component
Last updated
is an Entity Component
Last updated
Die Roller is another behind the scenes component, used for creating chance and randomisation in levels. It can be a little tricky, but once you get a knack for it it feels straight-forward.
Currently, die roller supports up to 6 potential outcomes - just like the sides of a die - but if you apply this component to multiple entities, all having 6 possible outcomes, depending on how solid your linking is, you can create theoretically infinite random interactions and occurrences!
High roll threshold - determines the minimum number for a high roll, for linking purposes. The default is 4. E.g.:
If I roll 1, 2 or 3, I've rolled low
If I roll 4, 5 or 6, I've rolled high
Can be used to easily create a 2-option outcome
Introducing chance to games - maximises replayability
Randomised ambience