Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Thread Tools Display Modes
Programming with Alice and Java - Mummy Assignment
Posts: n/a
Default Programming with Alice and Java - Mummy Assignment - 12-19-2010, 03:35 PM

I just finished my second assignment (like the posts before me) for my DCCCD class Programming Logic and Design.

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 backward 1 meter
// repeat this time with the right leg

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?


Tim S.
Reply With Quote
David B
Senior Member
David B's Avatar
Status: Offline
Posts: 1,145
Join Date: Dec 2010
Location: N/A
Default 12-19-2010, 08: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.
Reply With Quote

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.