# Realistic rolling dices (yahtzee)

**URL:** <https://forum.kirupa.com/t/realistic-rolling-dices-yahtzee/214751>\
**Category:** programming\
**Created:** [January 31, 2007, 6:32pm UTC](https://forum.kirupa.com/t/realistic-rolling-dices-yahtzee/214751 "2007-01-31T18:32:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arckodrazen](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@arckodrazen](https://forum.kirupa.com/u/arckodrazen)\
**Post date:** [January 31, 2007, 6:32pm UTC](https://forum.kirupa.com/t/realistic-rolling-dices-yahtzee/214751/1 "2007-01-31T18:32:19Z")

</div>

Hi guys

I’m making a yahtzee game. I’d like to make an animation of rolling dices instead of some simple surface switching of a die surface. I found an example here: [http://www.allgames4u.com/yahtzee.htm](http://www.allgames4u.com/yahtzee.htm)  
I really like how this is animated. Can you guys help me with analyzing on how to do this animation? I’ve been using flash 8 & actionscript for several months now and I think that I’m capable of doing this animation (I also know how to do some basic 3D art & animating in swift3D).

It would be great if someone already made this animation but I don’t like ripping someones solution so IF you like to post your solution you can be sure that I’m not going to do some copy/pasting but instead using your file as an informational example.

So, can you guys help me by telling me what kind of techniques I need to use for making such an animation as referred above?

I see that the animation has dice that bump against each other. How do I do this?  
How would you make an animation like this? Should I use 3D? … ?

Currently I have this (my static solution): a roll button, 5 dices. If you press roll, the math.random function generates a number from 1 to 6 and with this number I use a gotoAndStop() in a die-MovieClip which results in displaying the correct number of eyes on the surface of the die.

Shoot! 😉
