wendi_heath
03-02-2009, 09:43 PM
Okay, all. . . I am working on a program in which I make a die drop to a table, spin and stop, showing a random face value each time. I created the die by adding a cube, and then adding circle objects to create the die faces. I've figured out how to get it to drop, but how do I create a list of the different faces, so that I can get it to "land" on a random item from the "face" list each time? I can't make a list of each side of the cube; it's not possible. HELP!! Thanks.
wongwanchap
03-03-2009, 06:39 AM
seems you have the same problem with him:
http://www.alice.org/community/showthread.php?p=9027#post9027
Scott300
03-03-2009, 08:48 AM
My solution to this would be, place a flat invisable object on each side of the side labeling them 1-6. do you like dice roll animation that pick a randome object 1-6 and place an invisable cube above the table and have the 1-6 flat object face that cube above it than you can just make a function that says
if (objectrolled==object1)
{
add to list "1"
}
else if (objectrolled==object2)
{
add to list "2"
}
or something to that area.