PDA

View Full Version : please help, cant find the answer anywhere on the web


higstone
10-17-2013, 04:26 PM
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
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
6801

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

chickentree
10-19-2013, 06:53 AM
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

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
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
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