View Single Post
I need help in Chapter 8 exercise 2 Butterfly Chase
Old
rmfunnies
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