Project 548: Homeward Bound

10. Directions for the Magic Car

Give directions to the Jungle Animal car so it can take your jungle animal home.
Starting point file for this challenge

Your goal

Steps

1. Plan the drive!

Let's plan out the path we are going to tell the car to take. 

Which of the colored circles will the robot car need to travel to in order to bring the animal home?

2. Add the first instruction

Get a "glide 1 secs to random position" block from the dark blue "Motion" tab, and add it to the code after the "wait 1 seconds" block. Then change 'random position' to the first colored circle you want the car to drive to.

3. Add a "wait 0.5 seconds" block

We want our robot car to drive safely, so we are going to tell it to pause for half a second before it drive to the next circle.

4. Add the next instructions and wait

Continue adding glide blocks and wait blocks until your car is at the colored circle that is closest to the snow habitat

5. Finish the path!

Once the robot car has reached the colored circle that is closest the animals habitat it still needs one more instruction to take the animal home.

Add a "glide 1 seconds to random position" block, and change 'random position' to "Castle".  

6. Test it out!

Test out your finished instructions!
You will know your code works if your car does not get sent back to the beginning and it disappears once it has reached the correct habitat.