Alice Community Beginner - making toysoldier jump where I want

 Beginner - making toysoldier jump where I want
keskk
Junior Member

Status: Offline
Posts: 13
Join Date: Feb 2013
Beginner - making toysoldier jump where I want - 02-01-2013, 05: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
 Alice.zip (32.1 KB, 11 views)

 bob3584 Senior Member   Status: Offline Posts: 180 Join Date: Jan 2013 Location: In a Cardboard Box. 02-01-2013, 06:45 PM is this an ALICE 3 world? My avatar will always be a preview of what I am currently working on.
keskk
Junior Member

Status: Offline
Posts: 13
Join Date: Feb 2013
02-01-2013, 07:37 PM

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
 Q4.zip (43.5 KB, 3 views)

Last edited by keskk; 02-01-2013 at 08:14 PM.

 bob3584 Senior Member   Status: Offline Posts: 180 Join Date: Jan 2013 Location: In a Cardboard Box. 02-01-2013, 08: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.
 keskk Junior Member   Status: Offline Posts: 13 Join Date: Feb 2013 02-01-2013, 08: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.
 bob3584 Senior Member   Status: Offline Posts: 180 Join Date: Jan 2013 Location: In a Cardboard Box. 02-01-2013, 08: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.

 Thread Tools Display Modes Hybrid Mode

 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 Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements     Community News and Announcements Alice 3     How Do I?     Works In Progress     Share Your World     Share Custom Classes     Bugs and Trouble Shooting     Suggestion Box Alice 2     How do I...?     Works-In-Progress     Share Worlds     Share Objects     Bugs and Troubleshooting     Suggestion Box Educators     Teaching with Alice     Teaching Using Alice 3     Teaching Using Alice 2     CS Principles and Alice     AP CSA and Intro to Java and Alice     Workshops     Alice Player and VR General Discussion     Questions and Comments     The Lounge