Randomized Board Game - No repeat numbers solution
Oct 19, 2018
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
13 Replies
Thanks for sharing your solution.
Love this! Great Job!
Thank you very much!
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 :)
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!
This post was removed by the author
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.
Thanks, Ryan. It's a great trick. Kudos!
Really nice work!
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.
http://swifthosted.com/demos/dice/story_html5.html
Randy - that's a great dice rolling animation! I'd love to see how you did it.
That's an ingenious and non-complicated solution! Thanks, Ryan!
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.