Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Make multiple objects move with the same random number?
Old
wildpirateman
Junior Member
 
Status: Offline
Posts: 1
Join Date: Apr 2012
Angry Make multiple objects move with the same random number? - 04-29-2012, 06:26 PM

I am working on the Ch6 ex 14 Make A Spinner. I cant seem to get all four sections of the torus to move at the same random number so it looks like a spinning wheel. With the code i uploaded it will either only spin a designaated amount or go crazy with four random numbers. Please help.
Attached Files
File Type: a2w Make a Spinner.a2w (185.3 KB, 29 views)
   
Reply With Quote
Old
Mr Kidnapper
Senior Member
 
Status: Offline
Posts: 442
Join Date: Feb 2011
Default 04-30-2012, 02:26 AM

Well it's not like you have to generate the random number inside the loop. Use variables.
   
Reply With Quote
Old
jims69camaro
Junior Member
 
Status: Offline
Posts: 1
Join Date: Oct 2017
Location: New Jersey
Default 11-25-2017, 03:47 PM

Quote:
Originally Posted by Mr Kidnapper View Post
Well it's not like you have to generate the random number inside the loop. Use variables.
Thank you. This was exactly what I needed.
   
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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.