Alice Community Beginner - making toysoldier jump where I want

 bob3584 Senior Member   Status: Offline Posts: 180 Join Date: Jan 2013 Location: In a Cardboard Box. 02-01-2013, 10:37 PM Ok, what are the requirements? 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, 11:23 PM Exact question as follows: 1. Start a new scene and add a ToySoldier. 2. Make the soldier move forward 10 meters in 10 seconds, then turn right 90 degrees in 0.5 second. 3. Make the soldier march in a square. Do NOT repeat the code. Use a loop (count instruction) 4. Add arm swinging in time to the march. The left and right arm should move forward and backward as the soldier marches. 5. Add leg movements. 6. Make the soldier jump in the first and the third corner of the square. Use nested loops (loop inside another loop) and do not repeat the code. 7. Make the soldier salute at the beginning of the animation. --End-- Thanks.
 Fixed!
bob3584
Senior Member

Status: Offline
Posts: 180
Join Date: Jan 2013
Location: In a Cardboard Box.
Fixed! - 02-02-2013, 01:04 AM

Here is a fixed version. READ THE NOTES INSIDE!!!!!!!!!
Attached Files
 Q4_fixed.zip (44.7 KB, 1 views)

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-02-2013, 08:20 AM

Thanks so much for help. I made a small change cos I needed the salute only at the start.

no.1: Regarding the Jump, the alien jumps and marches off at the same time at the start point. It was supposed to be jump finish, and then he marches off. ( Tried moving the jump portion out of the 'count' but it only means he jumps, waits for delay, jumps again and then starts his march. So guess moving it out of the loop is not the way to go.. )

no. 2: Also regarding the jump at point 1 and point 3, can you show me how to use a for loop to make it happen instead of a delay command? (I am guessing this will address the issue in no.1 too)

Do advice and thanks again for help. Appreciate it.
Attached Files
 Q4_fixed.zip (44.2 KB, 2 views)

 bob3584 Senior Member   Status: Offline Posts: 180 Join Date: Jan 2013 Location: In a Cardboard Box. 02-02-2013, 09:05 AM I will try, but I I'll be gone later today. We'll see what comes of it... 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-02-2013, 09:06 AM Thank you.
 bob3584 Senior Member   Status: Offline Posts: 180 Join Date: Jan 2013 Location: In a Cardboard Box. 02-02-2013, 09:14 AM What grade level is this for? My avatar will always be a preview of what I am currently working on.
bob3584
Senior Member

Status: Offline
Posts: 180
Join Date: Jan 2013
Location: In a Cardboard Box.
02-02-2013, 09:29 AM

Here, I don't use ALICE 3, so I had to use the delay commands (I don't know what else to do). But the timing is fixed (I hope). Did you check out my physics engine?
Attached Files
 Q4_fixed2.zip (44.8 KB, 3 views)

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-02-2013, 10:53 AM Thank you. It works! I am just trying to work out a way without having the 2secs delay before moving off at every turn. Also trying to figure out how to do the if statement method for the jump instead of delays. Hope I can come up with something. Regarding grade, this is my first lesson + homework, so guessing that is equal to level 1 (or maybe 0) or something. Tried out your physics with the box able to jump and maneuver using WASD. Really cool. Now about figuring out how all those codes means for me to understand it. Tnks again for help.
 bob3584 Senior Member   Status: Offline Posts: 180 Join Date: Jan 2013 Location: In a Cardboard Box. 02-02-2013, 03:03 PM No problem! My avatar will always be a preview of what I am currently working on.

 Thread Tools Display Modes Linear 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