• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomeScratchClone block in Scratch 2.0
Previous Next

Clone block in Scratch 2.0

Posted by: Alvin Jin , January 17, 2014

Cloning. What an abstract idea. One of the new features in Scratch 2.0 is the ability to clone an object. Here’s a quick script that shows us cloning an apple so we can “feed the cat.” This script is attached to the sprite we’re cloning (an apple). Put all the stuff you want to do with the clone in between the clone startup and end startup blocks.

scratch2-clone

We use another sprite to actually clone the apple because cloning your self is hard, stresses Scratch, and feels wrong. In my example, sprite 1, the cat in the lower left of the stage, his hurling apples at the second cat each time the space bar is shown. That script isn’t shown, but it’s really simple (when space bar pressed, clone apple).

apple-shot-300x250

The following image shows a cloned apple.

Tags: Scratch

Share!
Tweet

Alvin Jin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors