Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   The Lounge (http://www.alice.org/community/forumdisplay.php?f=4)
-   -   Programming with Alice and Java - Mummy Assignment (http://www.alice.org/community/showthread.php?t=5737)

timsally 12-19-2010 02:35 PM

Programming with Alice and Java - Mummy Assignment
 
I just finished my second assignment (like the posts before me) for my DCCCD class [I]Programming Logic and Design[/I].

I enjoyed working with methods, particularly creating methods with multiple calls to create a more complex behavior. I had the mummy shuffle by one such method. I shuffled the legs (leg object of the mummy object) to mimic a mummy's walk, but had to create a reverse movement to realign it when I moved the entire body (mummy object). I had to do that because the legs are part of the mummy object and will move forward with the entire body:

mummy.left leg move forward 1 meter
Do together:
mummy move forward 1 meter
mummy.left leg move [B]backward[/B] 1 meter
[I]// repeat this time with the right leg[/I]

Does anyone know of a better way to accomplish what I did?

And as always, I'm wondering if the chopiness of the playback is due to the program or if there is something I can do to make it less choppy?

Thanks,

Tim S.

David B 12-19-2010 07:16 PM

I don't quite understand what your problem is, but apparently many students have had this assignment, and many of them have run in to some sort of problem. Check out these threads, and you may find what you need.

[url]http://www.alice.org/community/showthread.php?t=5729[/url]

[url]http://www.alice.org/community/showthread.php?t=5707[/url]

[url]http://www.alice.org/community/showthread.php?p=29869&posted=1#post29869[/url]


All times are GMT -5. The time now is 05:07 AM.

Copyright ©2022, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.