Forum Discussion
Randomized Board Game - No repeat numbers solution
Hi Euan,
I cannot speak for Ryan, but I was able to take a look at the file.
On Slide 1.1, take a look at the layer named dice roll value. The triggers on this layer show you that when the value has already been used, it resets to prevent repeats.
Hope that helps :)
Hi Lesley,
Thank you for this, it's great to clarify how it works.
I'd said "developed it so it loops the animation run again if a previously rolled number appears again" and you've helped by clarifying this is the case :).
Thanks again!
- RyanCrockett-a66 years agoCommunity Member
Leslie - Thanks for answering Euan's question.
Euan - The Roll the Dice layer basically serves to retrigger the Dice Roll Value layers as it jumps between the two when a random number results that has already been used. Adding a layer like this is a useful trick for creating infinite loops for animations or when using random numbers.
- EuanHill-0ac0c26 years agoCommunity Member
Thanks, Ryan. It's a great trick. Kudos!