Alice Community

Alice Community (
-   How do I...? (
-   -   Help with Chapter 4 frog escape example. (

kjobrien 06-25-2010 04:38 PM

Help with Chapter 4 frog escape example.
1 Attachment(s)
Frog Escape. At a local lily pond, the frogs (in Animal folder) enjoy climbing out of the water to warm up in the sun. They get a bit jumpy when a predator is sighted. In this movie, a hungry snake (Animals) wanders into the scene
The snake is off camera.
Complete the program as described.Animate the frogs jumping into the pond when the snake approaches them. Write a method that turns the snake toward a frog and slides the snake forward. Then, have the frog turn to the pond and jump in. The method should use a parameter to specify which frog is escaping.

The point of this exercise is to create some world level methods that use parameters.

What I am trying to figure out is how do I write something that lats the frigs know that the snake is within a certian distace and it time to turn and run.

Any help will be greatly appreciated.

rich0e0rick 06-26-2010 03:16 PM

I'm on the old computer right now, so i wont even bother opening the file

but if I'm not mistaken, didn't i answer this exact question for your other exercise about the snowman "[B]Need help with loops and specifically for this world at this point [/B]"?


the only thing you have to change is (distance away > than) to (distance away < than) and then make the frog turn toward the pond and jump

I would have put money on the fact that this exercise would have been extremely easy for you now that you had just done the same thing. :(

maybe im seeing the question wrong.

kjobrien 06-26-2010 06:37 PM

Maybe, but I think its diffrent
I guess I am just confuested about using the parametrs statement in the question. Ive been out all day cutting trees down (was a big storm here). I dont know exactly how I am going to do this still I am going to try your suggestions. I thinki have to play around with it more I have been so busy. I will let you know what happens thanks for replying

Pinkiepony 03-15-2013 11:22 AM

1 Attachment(s)
Here's mine!

All times are GMT -5. The time now is 05:18 PM.

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