View Single Post
 debussybunny563 Senior Member     Status: Offline Posts: 852 Join Date: May 2010 08-14-2010, 04:20 PM I'll wait till you upload the world, and then I'll see what I can do with it. You don't have to use the random number function, since it's not necessary, but there is a way to do it with that. You'll probably have to make a numeric variable, and assign each cone to a certain number of the variable. It'll probably look something like this: 1. world.number set value to [random number min=1 max=4] 2. If world.number=1 world.skatetocone1 Else If world.number=2 world.skatetocone2 Else If world.number=3 world.skatetocone3 Else If world.number=4 world.skatetocone4 Else Do nothing Basically, at the beginning it sets the number variable to a random number, and then the If/Else statements nested within each other check to see which skating method it should do (to which cone) based on the random number function. You don't actually have to have a separate skate method for each cone (you can use a parameter and use a single, all-encompassing method), but I don't know how far you are in your class, so you can stick to 4 different methods for now. If you want, I can make an example of the parameter. EDIT: Wait a minute, I misread. Four skaters and four cones? To clarify, do the skaters skate to a different cone at the same time, or do they do it in a certain order? From what it sounds like, each of the skaters goes in order, and each one skates to each of the four cones, but in a random order. Please tell me exactly what the prompt is. Last edited by debussybunny563; 08-14-2010 at 04:30 PM.