Alice Community  

Go Back   Alice Community > Alice 2 > Share Worlds

Thread Tools Display Modes
Prev Previous Post   Next Post Next
I need help in Chapter 8 exercise 2 Butterfly Chase
Junior Member
Status: Offline
Posts: 2
Join Date: Aug 2013
Location: Lafayette, IN
Unhappy I need help in Chapter 8 exercise 2 Butterfly Chase - 09-23-2013, 01:52 PM

Can someone help me with the code in Chapter 8 exercise 2 "Butterfly Chase" or do this for me. Use recursion to make the white rabbit (Animal) chase a butterfly (Animals/Bugs). The butterfly should fly to a random, nearby location (within 0.2 meters in any direction).
The white rabbit, however, must always remain on the ground (rabbits do not fly). Each time the butterfly moves, use turn to face to make the rabbit turn toward the butterfly and then move the rabbit toward the butterfly 0.5 meters. When the rabbit gets close enough, have him catch the butterfly in his net (Objects). I need this by Friday 9/27/13.

Last edited by rmfunnies; 09-26-2013 at 01:20 PM.
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 ©2022, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.