Alice Community  

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

Reply
 
Thread Tools Display Modes
Beginner - making toysoldier jump where I want
Old
keskk
Junior Member
 
Status: Offline
Posts: 13
Join Date: Feb 2013
Default Beginner - making toysoldier jump where I want - 02-01-2013, 04:47 PM

I'm very new to Alice and to be honest turning desperate trying to figure out how to make the following program work for hours now. I have managed to make it all work less 2 parts - Salute and jumping at the exact spot I want him to. Please advice. Explanation as follows:

I need to make a toysoldier march in a square (legs and hand swinging) and get this in a loop. When he marches in a square formation, there is going to be 4 points on a square. at the 1st and 3rd corners of the square, he must jump. Also at the start, he must salute.

I have managed to get him to march in a square formation ( meaning he moves forward ten steps, turn right, move 10 steps again, turn right and so on in a square). Problem is he jumps at all 4 corners of the square instead of just 1 and 3. Also the salute looks weird.

Would appreciate any help to my problem. I am just using count and do together. Should I use if statements too (not familiar with it).

I have attached my work. unable to attach a .a3p file so I zipped it. Thanks in advance for help.
Attached Files
File Type: zip Alice.zip (32.1 KB, 11 views)
   
Reply With Quote
Old
bob3584
Senior Member
 
Status: Offline
Posts: 180
Join Date: Jan 2013
Location: In a Cardboard Box.
Default 02-01-2013, 05:45 PM

is this an ALICE 3 world?


My avatar will always be a preview of what I am currently working on.
   
Reply With Quote
Old
keskk
Junior Member
 
Status: Offline
Posts: 13
Join Date: Feb 2013
Default 02-01-2013, 06:37 PM

Thanks for reply.

Yes it is Alice 3 world but it is 3.0beta (school's current version), not 3.1.

Update: I did a different one and attached a new file version 3.1. I want the alien to jump at corner 1 and 3 of the square ( considering square has 4 corners, so 1st & 3rd corner).

I have done the rest which I am guessing is answering the question. Do advice if I missed out anything such as extra unnecessary codes where I could have looped or something. And as to how I can nest a loop within a loop to make him jump on the 1st and 3rd spot. Thank you.
Attached Files
File Type: zip Q4.zip (43.5 KB, 3 views)

Last edited by keskk; 02-01-2013 at 07:14 PM.
   
Reply With Quote
Old
bob3584
Senior Member
 
Status: Offline
Posts: 180
Join Date: Jan 2013
Location: In a Cardboard Box.
Default 02-01-2013, 07:31 PM

I'm checking it out now... just have to wait for ALICE 3 to download .


My avatar will always be a preview of what I am currently working on.
   
Reply With Quote
Old
keskk
Junior Member
 
Status: Offline
Posts: 13
Join Date: Feb 2013
Default 02-01-2013, 07:48 PM

I feel the earlier version is better (Alice.zip) considering I got the correct model (toy soldier) and he doesn't swing arms during turns unlike the later attachment(Q4.zip) where the alien is swinging arms even during turning.

Thanks for taking a look.
   
Reply With Quote
Old
bob3584
Senior Member
 
Status: Offline
Posts: 180
Join Date: Jan 2013
Location: In a Cardboard Box.
Default 02-01-2013, 07:51 PM

Ill try both. If you like ALICE, check out this:

http://www.alice.org/community/showthread.php?t=9881


My avatar will always be a preview of what I am currently working on.
   
Reply With Quote
Old
keskk
Junior Member
 
Status: Offline
Posts: 13
Join Date: Feb 2013
Default 02-01-2013, 08:56 PM

It is a 2.0 world, seems I can't open it with a 3.0 world. My 3.1 can't even open my school's version which is 3.0.

Find it weird, so used to having latest versions able to open all earlier versions in other softwares (think so).

Going to download the 2.3 version meanwhile.
   
Reply With Quote
Old
bob3584
Senior Member
 
Status: Offline
Posts: 180
Join Date: Jan 2013
Location: In a Cardboard Box.
Default 02-01-2013, 09:02 PM

Ok, it's an amazing physics engine made by yours truly.


My avatar will always be a preview of what I am currently working on.
   
Reply With Quote
Old
bob3584
Senior Member
 
Status: Offline
Posts: 180
Join Date: Jan 2013
Location: In a Cardboard Box.
Default 02-01-2013, 09:03 PM

By the way, when is this project due?


My avatar will always be a preview of what I am currently working on.
   
Reply With Quote
Old
keskk
Junior Member
 
Status: Offline
Posts: 13
Join Date: Feb 2013
Default 02-01-2013, 09:30 PM

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