View Full Version : I need help in Chapter 8 exercise 2 Butterfly Chase

09-23-2013, 12: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.

09-23-2013, 04:35 PM
Please ask more specific questions. What exactly are you confused about?

09-24-2013, 04:14 PM
I need the rabbit to catch the butterfly in the net, using recursion, show code in doing this or can you do this for me. I need this ASAP.