Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   please help, cant find the answer anywhere on the web (http://www.alice.org/community/showthread.php?t=10323)

higstone 10-17-2013 04:26 PM

please help, cant find the answer anywhere on the web
 
Hi,

I am trying to move 3 objects simultaneously via the user input, I can do it with 1 object successfully, but I need 3 objects to follow the same command with only 1 input box being used.

Any ideas/methods of doing this?

Thank you

RobertDevita 10-17-2013 07:30 PM

Answer to question
 
I'm guessing by user input you mean a yes or no question for the user.
If so, then you should be able to do

if userinput==yes {
Do Together {
Object1 do whatever you want it to do
Object2 do whatever you want it to do
Object3 do whatever you want it to do
}
Else {
Do Nothing
}
}

I hope this answers your question.

RobertDevita 10-17-2013 07:35 PM

1 Attachment(s)
[ATTACH]6801[/ATTACH]

Here is an example if you didn't understand the way I said it.

chickentree 10-19-2013 06:53 AM

[QUOTE=higstone;53568]Hi,

I am trying to move 3 objects simultaneously via the user input, I can do it with 1 object successfully, but I need 3 objects to follow the same command with only 1 input box being used.

Any ideas/methods of doing this?

Thank you[/QUOTE]

Look at the vehicle property.
Set objects 2 and 3's vehicle to object 1 and have your user move object 1, the other two will follow. Note that you can change the vehicle property in your movie by dragging it into the code window.

Mark

higstone 10-21-2013 03:52 PM

Hi,

Thanks for replying to my post, changing an objects vehicle works with regards to the user input and only asking for one question to move several units, however when I play the world the other objects for some reason facing differently and move around the man object.

Do you know how I can create a marching formation? I am doing it with penguins and need them to move in a square simultaneously, but it needs to let the user to decide the distance in which they move, I am really stuck on this and would really appreciate any advice.

Thank you

Sean

chickentree 10-23-2013 02:30 PM

[QUOTE=higstone;53581]Hi,

Thanks for replying to my post, changing an objects vehicle works with regards to the user input and only asking for one question to move several units, however when I play the world the other objects for some reason facing differently and move around the man object.

Do you know how I can create a marching formation? I am doing it with penguins and need them to move in a square simultaneously, but it needs to let the user to decide the distance in which they move, I am really stuck on this and would really appreciate any advice.

Thank you

Sean[/QUOTE]
Remember that as long as the vehicle is set your marchers will continue to follow the leader but if you tell one of the following objects to turn around (for instance) that object will continue to move as the leader does but will be facing backwards.

Other than that, I would need a sample of the movie.

Mark


All times are GMT -5. The time now is 07:10 PM.

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