Alice Community  

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

Reply
 
Thread Tools Display Modes
please help, cant find the answer anywhere on the web
Old
higstone
Junior Member
 
Status: Offline
Posts: 2
Join Date: Oct 2013
Question please help, cant find the answer anywhere on the web - 10-17-2013, 05: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
   
Reply With Quote
Answer to question
Old
RobertDevita
Junior Member
 
Status: Offline
Posts: 11
Join Date: Oct 2013
Default Answer to question - 10-17-2013, 08: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.
   
Reply With Quote
Old
RobertDevita
Junior Member
 
Status: Offline
Posts: 11
Join Date: Oct 2013
Default 10-17-2013, 08:35 PM

questionExample.a2w

Here is an example if you didn't understand the way I said it.
   
Reply With Quote
Old
chickentree
Super Moderator
 
Status: Offline
Posts: 212
Join Date: Dec 2012
Location: Frosno, Ca
Default 10-19-2013, 07:53 AM

Quote:
Originally Posted by higstone View Post
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


Mark Henwood
mhenwood@ieee.org
   
Reply With Quote
Old
higstone
Junior Member
 
Status: Offline
Posts: 2
Join Date: Oct 2013
Default 10-21-2013, 04: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
   
Reply With Quote
Old
chickentree
Super Moderator
 
Status: Offline
Posts: 212
Join Date: Dec 2012
Location: Frosno, Ca
Default 10-23-2013, 03:30 PM

Quote:
Originally Posted by higstone View Post
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


Mark Henwood
mhenwood@ieee.org
   
Reply With Quote
Reply

Tags
input box

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 ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.