KittyCode Programming Challenge

Bubble Bots

Make the Bubble Bots move from start to end at the push of a button!

1 - Enter the template.

Look at the code that is there to help you. This code will make your sprite appear in the same spot every time you press the green flag as your explore and discover how to put your code together.

2 - Make the bubble bot's path appear.

Make your background switch to the horizontal line pointing right when you press the "a" key. This will give the bubble bot a direction to move in! 

Look

in these sections for blocks!

This line

is on the positive X axis!

3 - Bubble Bot to starting position! 

Drag your bubble bot to the starting point. This will set your block to the right position. Then, program your bubble bot to glide to this spot when you press the "a" key. 

Look

in this

 sectionfor blocks!

4- Move the bubble bot to the finish line! 

Drag the bubble bot to the finish lock its position into the block. Use the same block as above with the bot's new location. 

Notice how your bubble bot is moving across the positive X axis! 

5- Let's try another path! 

Press the green flag to reposition your bots. Change the background to the horizontal line pointing left when you press the "b" key.  

This line

is on the negative X axis!

Hooray! You did it!

6- Move your bot to the starting position!

Drag your bubble bot to the starting point. This will set your block to the right position. Then, program your bubble bot to glide to this spot when you press the "b" key. 

7- Move your bot to the finish line!

Drag your bubble bot to the finish line. This will set your block to the right position. Then, program your bubble bot to glide to this spot when you press the "b" key. 

Notice how your bubble bot is moving across the negative X axis! 

8- Let's try another path!

Press the green flag to reposition your bots. Change the background to the vertical line pointing up when you press the "c" key.  

This line

is on the positive Y axis!

9- Move from start to finish!

Program your bot to move from start to finish as you did above when you press the "c" key. 

Notice how your bubble bot is moving across the positive Y axis! 

10- Let's try another path!

Press the green flag to reposition your bots. Change the background to the vertical line pointing down when you press the "d" key.  

This line

is on the negative Y axis!

11- Move from start to finish!

Program your bot to move from start to finish as you did above when you press the "d" key. 

Notice how your bubble bot is moving across the negative Y axis! 

If you need help, click me to see the finished product!