Alice Community  

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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Help with Chapter 4 frog escape example.
Old
kjobrien
Guest
 
Status:
Posts: n/a
Default Help with Chapter 4 frog escape example. - 06-25-2010, 03:38 PM

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.
Attached Files
File Type: a2w 6. Frog Escape.a2w (3.20 MB, 222 views)
   
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 ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.