Skip to content
Transcript

In this video, you'll make the picture the Imaginator chooses for your friend's future grow and shrink.

First, make this sprite grow.

Click on the home sprite, click on the looks menu, click the change size by block.

The home gets bigger.

To make the sprite get smaller again, place a negative sign in front of the number in the change size by block.

Click on the block again.

The home sprite shrinks back to its original size.

Drag out two change size by blocks.

Place the same number in both blocks, but make one positive and one negative.

The change size by block changes the sprite size one time.

To make the sprite change sizes many times, so it looks like it's growing bit-by-bit, use a loop.

Place a loop around the change size by block that has a positive value.

In today's project, you use a repeat until loop to keep the future choices cycling until your friend pressed a key.

In this case, the sprite will grow a specific number of times until it reaches a size you like.

Place a repeat loop around the change size by block to make that happen.

Click on the block.

The home gradually gets larger.

Great.

Next, place the repeat loop around the negative change size by block.

Click on it.

The home sprite shrinks gradually.

Awesome.

Tinker with the values in the blocks to change the number of times the sprite grows and shrinks.

Finally, place this code after the repeat until loop.

Click the flag.

When you press the space bar, the home sprite the Imaginator chose should grow and shrink.

Then the job sprite should start spinning.

Follow these same instructions to make the job sprite grow and shrink as well.

Now it's your turn.

Make the sprite grow and shrink using change size by block.

Make the sprite change size gradually by adding a repeat loop around the change size by blocks.

Add the new code after the repeat until loop in your project.

Choose an Add-On

A Bigger Future
Add Another Image (Part 1 of 2)
Add Another Image (Part 2 of 2)
Program Introduction
Sound!

Instructions

  1. Choose an Add-On, and click "watch" to learn how to build it.
  2. Once you finish one Add-On, try another one below the video!
Attributions
  • BACKPACKING FAMILY WITH CHILDREN ON THEIR BACKS CROSSES THE BRIDGE AT MARCY DAM, NEW YORK, IN THE ADIRONDACK FOREST... - NARA - by Anne LaBastille (http://commons.wikimedia.org/wiki/File:BACKPACKING_FAMILY_WITH_CHILDREN_ON_THEIR_BACKS_CROSSES_THE_BRIDGE_
  • Obama family walks with First Dog Bo 4-14-09 by Chuck Kennedy (http://commons.wikimedia.org/wiki/File:Obama_family_walks_with_First_Dog_Bo_4-14-09.jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • BenToddJealousFamily by Imperfect chaosimperfect_chaos (http://commons.wikimedia.org/wiki/File:BenToddJealousFamily.jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Scott Speedster S50 by Jesús Rodriguez (http://commons.wikimedia.org/wiki/File:Scott_Speedster_S50.jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Family playing a board game (1) by Bill Branson (http://commons.wikimedia.org/wiki/File:Family_playing_a_board_game_(1).jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Suzuki vstrom dl650 motorcycle by Ibanix (http://commons.wikimedia.org/wiki/File:Suzuki_vstrom_dl650_motorcycle.jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Final 2013 Fencing WCH FMS-IN t200907 by Marie-Lan Nguyen (http://commons.wikimedia.org/wiki/File:Final_2013_Fencing_WCH_FMS-IN_t200907.jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Family Eating Meal by National Cancer Institute (http://commons.wikimedia.org/wiki/File:Family_eating_meal.jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Paris Motor Show 2012 (8065248951) by Nan Palmero (http://commons.wikimedia.org/wiki/File:Paris_Motor_Show_2012_(8065248951).jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Friends with Mobile Phones by Gary Knight (http://commons.wikimedia.org/wiki/File:Friends_with_Mobile_Phones.jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • For Images in the Gallery linked aboved:
  • Tony Stewart 2005 at Infineon photo D Ramey Logan by WPPilot (http://commons.wikimedia.org/wiki/File:Tony_Stewart_2005_at_Infineon_photo_D_Ramey_Logan.jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Sd11-boom by Xavier Romero-Frias (http://commons.wikimedia.org/wiki/File:Sd11-boom.JPG) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Three-man cup defense.jpeg by Sesse (http://en.wikipedia.org/wiki/File:Three-man_cup_defense_in_ultimate.jpeg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Tea Time In Japan by Tina Tsai (http://commons.wikimedia.org/wiki/File:Tea_Time_in_Japan.jpg) licensed under CC-BY 3.0 (http://creativecommons.org/licenses/by/3.0/)
  • Smart Car, are they easy to park on the door handles by Mick (http://commons.wikimedia.org/wiki/File:Smart_Car,_are_they_easy_to_park_on_the_door_handles_-_Flickr_-_mick_-_Lumix.jpg) licensed under CC-BY 2.0 (http://creativecommons.org/licenses/by/3.0/)