Alice Community  

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

Reply
 
Thread Tools Display Modes
Old
bob3584
Senior Member
 
Status: Offline
Posts: 180
Join Date: Jan 2013
Location: In a Cardboard Box.
Default 02-01-2013, 09:37 PM

Ok, what are the requirements?


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, 10: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.
   
Reply With Quote
Fixed!
Old
bob3584
Senior Member
 
Status: Offline
Posts: 180
Join Date: Jan 2013
Location: In a Cardboard Box.
Talking Fixed! - 02-02-2013, 12:04 AM

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


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-02-2013, 07: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
File Type: zip Q4_fixed.zip (44.2 KB, 2 views)
   
Reply With Quote
Old
bob3584
Senior Member
 
Status: Offline
Posts: 180
Join Date: Jan 2013
Location: In a Cardboard Box.
Default 02-02-2013, 08: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.
   
Reply With Quote
Old
keskk
Junior Member
 
Status: Offline
Posts: 13
Join Date: Feb 2013
Default 02-02-2013, 08:06 AM

Thank you.
   
Reply With Quote
Old
bob3584
Senior Member
 
Status: Offline
Posts: 180
Join Date: Jan 2013
Location: In a Cardboard Box.
Default 02-02-2013, 08:14 AM

What grade level is this for?


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-02-2013, 08: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
File Type: zip Q4_fixed2.zip (44.8 KB, 3 views)


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-02-2013, 09: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.
   
Reply With Quote
Old
bob3584
Senior Member
 
Status: Offline
Posts: 180
Join Date: Jan 2013
Location: In a Cardboard Box.
Default 02-02-2013, 02:03 PM

No problem!


My avatar will always be a preview of what I am currently working on.
   
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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.