Alice Community  

Go Back   Alice Community > Alice 2 > Share Worlds

Reply
 
Thread Tools Display Modes
Stupid Die!
Old
wendi_heath
Guest
 
Status:
Posts: n/a
Arrow Stupid Die! - 03-02-2009, 11:38 PM

How do I get this die to land on a random side (which will be saved in a list) each time? I cant save the sides of the die in a list, because I'm just saving the same die each time! HELP!
Attached Files
File Type: a2w dicespin.a2w (1.45 MB, 33 views)
   
Reply With Quote
Old
wongwanchap
Guest
 
Status:
Posts: n/a
Default 03-03-2009, 06:38 AM

I have only changed the your function a little bit, but still seems too strange.
Attached Files
File Type: a2w dicespin.a2w (1.46 MB, 33 views)
   
Reply With Quote
Old
Scott300
Senior Member
 
Status: Offline
Posts: 80
Join Date: Feb 2009
Location: Ohio
Default 03-03-2009, 08:47 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.
  Send a message via AIM to Scott300 Send a message via MSN to Scott300  
Reply With Quote
tried it
Old
wendi_heath
Guest
 
Status:
Posts: n/a
Default tried it - 03-03-2009, 02:39 PM

Okay, I put an invisible square on each face of the die and labeled them Side 1 through Side 6. I made their vehicle = the die. Then I made a list of all the Side 1 through Side 6 objects. Okay, then I made the die spin. Now, when the die stops spinning, I said "random item from world.side turn to face camera", but it doesn't do anything! It doesn't turn the actual die. And if i try to set the die's vehicle = to any side, i get an error message.
   
Reply With Quote
Old
Scott300
Senior Member
 
Status: Offline
Posts: 80
Join Date: Feb 2009
Location: Ohio
Default 03-04-2009, 09:13 AM

Make like an invisable cube above where the die lands, make a turn to face cube.
  Send a message via AIM to Scott300 Send a message via MSN to Scott300  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.