Forum Discussion
Roll the Dice Game
I know we all have seen this game before. I just wanted to share my example and thoughts about it. It uses a dice roll that randomly generates a number between 1 and 6 and then directs you to one of the total six questions. Why only 6? Because dice has only 6 numbers. If you roll a dice and get a number 5 it doesn't feel right for me to send you to question 8. If have more questions I would probably show two dices and increase a random number to a value between 1 and 12. I also know there is a way to limit how many times a certain number is rolled. If I have done that then it would not be a random number anymore. It doesn't happen in the real world. In this scenario, when a certain number is rolled again after the question was answered right, a popup message will let you know that. If you have answered this question wrong, when the same number is rolled you will have a chance to answer the same question again. There is a total of 18 attempts to answer all questions right. However, after 12 attempts, a dice roll will force set a number(s) associated with questions that you struggle with the most. For instance, if you have answered 4 questions right with 2 questions left (eg. 3 and 5), with only a few attempts left, numbers 3 and 5 will be force set so you can still have time to provide correct answers and successfully complete the game. Hope someone will find this concept helpful. If there are any questions or improvement suggestions, please let me know.
https://360.articulate.com/review/content/531f56e7-f1eb-45a3-b3eb-e214f0d35b90/review
- BWoodsFormer Staff
Hi Den,
Thanks for sharing this new take on a dice rolling interaction!
In my playthrough I definitely appreciated that eventually the dice rolls shifted to fully random to force setting numbers based on the questions you haven't gotten right yet. How did you set up the interaction to make that shift mid-way through? - DenMidenCommunity Member
Hi Bianca,
Set the dice throws counter and determine the point where your game may get annoying :)
In my case, 12 throws is a breakpoint where the dice rolls are shifting from fully random to force setting. If the dice throws number is greater than 12, a function will start checking which questions are still unanswered or answered wrong. If conditions are met, force set the dice number to a number of these questions in the order you like. I attached an example of a trigger that does this work. You may wanna use only "QxAnswered" boolean variable in a condition if a question only need to be answered but not validated. - BWoodsFormer Staff
Thanks for the trigger screenshot, Den. That's so helpful for seeing your approach to making this interaction work!
- TatePittmanCommunity Member
Thanks for sharing your thoughts on the Roll the Dice game! It's a classic way to add randomness and fun to decision-making. I totally get where you're coming from with the limited number of questions based on the dice faces. Using two dice to expand the possibilities sounds like a great idea! And it's cool that you're considering limiting certain outcomes for balance.Have you ever thought about incorporating a coin flipper alongside the dice? It could add even more variety to the game! Looking forward to hearing more about your game development adventures.