Increase your game’s visual appeal with some animated dice! Dice come in three colors: white, black and red. AS2 and AS3 versions are both included.
Click on the die to roll it. It’s face value will be randomly chosen in mid-spin.
Each die is contained in its own MovieClip and can be dragged and dropped right into your game project. You can add multiple dice if desired.
The current face value of die is stored in a variable “faceValue” to be used for your game logic.
Two Boolean variables on frame 1 allow you to turn off the random rotation and sound effect.
Dice animation looks best at framerates of 24 to 30 FPS .
FLA source files in CS3 /CS4 format. ActionScript 2.0 and 3.0 versions included.