Forum Discussion
Randomized Board Game - No repeat numbers solution
Hi All -
I watched Nicole's webinar the other day - Learn How to Build an Engaging Board Game Slide - that had a game that used the random number generator to replicate a die roll. One question that came up was how to make it so once a number was rolled, it would not result again. After some trial and error I was finally able to get this working with triggers and wanted to share.
I also added the triggers to make it so the state of the question tile would change to indicate if the question was answered correctly or not.
You can see it in action here:
https://360.articulate.com/review/content/ab605cbf-6dec-46a9-88b6-2ac52927b4f1/review
Thanks for sharing your solution.
- PhoebeLu-de754bCommunity Member
Love this! Great Job!
- NancyTurcios-c7Community Member
Thank you very much!
- EuanHill-0ac0c2Community Member
Hi Ryan,
This is a fantastic tool! A really great idea. Can I just clarify my understanding of how you got around the repeat numbers?
Have you developed it so it loops the animation run again if a previously rolled number appears again?
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 :)
- EuanHill-0ac0c2Community Member
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-a6Community 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.
- DavidSchwartz-fCommunity Member
Really nice work!
- RandyHill-536e6Community Member
Thanks Ryan, I have done a dice game before for a workshop. I did not tie it to questions but it is random and uses question banks a random to pull up a slide with the dice roll on it.
- RyanCrockett-a6Community Member
Randy - that's a great dice rolling animation! I'd love to see how you did it.
- FoongSiewKuenCommunity Member
That's an ingenious and non-complicated solution! Thanks, Ryan!
- JamesThompson-2Community Member
I have looked for this solution for days, on Friday April 9, 2021 I came across this game. I solved my problem totally which was repeat out of a group of 12 questions. I have a little more flare in a board with 12 numbers and they change colors which are on an extra layers, it also has sound with it.
- ArtVegaCommunity Member
I'm a newbie in content dev and I find it hard to edit this, is there a way to score this for gamification and have 2 sessions of this game into 1 scene since I can only add 6 questions and it would be neat to have 12 questions inside.