PDA

View Full Version : Penguin Program


djokster
02-20-2008, 10:12 PM
How do I do this:
*open up the example LakeSkaterDemoStart. Add a penguin to it.
*fix the penguin's "glide" method so it stands up again after gliding.
*give the penguin a method "Hop Around" which makes it do the following:
1. turn in a random direction and walk 2 steps in that direction;
2. turn towards the hole and glide.
*write "my first animation" (you might want to rename it something less
dumb) so that the penguin will repeat "hop around" indefinitely‹ until
someday it ends up on top of the hole. When this happens, it will stop
hopping around, and simply fall .75 meters into the hole.

I am continuously getting stuck on getting the penguin to actually fall into the hole.

lanceA
02-20-2008, 10:46 PM
Perhaps inform your teacher that you need additional instruction on this assignment. It's fairly straight-forward, especially since it is obvious that this is a school assignment:

" *open up the example LakeSkaterDemoStart"

I could be wrong but I believe that I remember this one from the Shelly, Cashman, Herbert book Alice 2.0, Introductory Concepts and Techniques book.

Good luck, :o

djokster
02-20-2008, 11:21 PM
Perhaps inform your teacher that you need additional instruction on this assignment. It's fairly straight-forward, especially since it is obvious that this is a school assignment:

" *open up the example LakeSkaterDemoStart"

I could be wrong but I believe that I remember this one from the Shelly, Cashman, Herbert book Alice 2.0, Introductory Concepts and Techniques book.

Good luck, :o

I know that it is a school assignment. Do you have any idea on how to get the penguin to fall into the hole once it reaches it?

gabe
02-21-2008, 01:38 AM
djokster,

We do not allow discussion relating to homework answers, whether it be an entire solution or part of one. There are several people who frequent the boards , including lanceA, who provide help with programming concepts and Alice interface tips and tricks. So please think about the underlying concepts of the program you are trying to make, and rephrase your question.

DickBaldwin
02-21-2008, 07:20 AM
I know that it is a school assignment. Do you have any idea on how to get the penguin to fall into the hole once it reaches it?

Go to Google and search for the following keywords:

baldwin alice tutorial penguin hole

Dick Baldwin
Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm
Free programming tutorials: http://www.dickbaldwin.com/toc.htm