Cloning is a feature that allows a sprite to create a clone, or semi-duplicate, of itself, while the project is running. This can be useful in tower defense games, for example, for a wave of objects. Clones of a sprite will be the same as the original, or parent sprite, but as a separate instance. Clones inherit the parent's scripts, costumes, sounds, and properties, but can then be modified. There is a limit of 300 clones per project to prevent excessive lagging or crashes,[1] but 301 can be made.
In Scratch 2.0, there are three blocks related to cloning. All can be found in the Control palette.
This block will clone the sprite it runs in. Its version in the Scratch Day 2011 prealpha had no dropdown insert to select a sprite.
It is also possible to clone other clones recursively.
This Hat Block activates when a clone is created. It only runs in the newly created clone, not previous clones or the parent.
This Cap Block will delete the clone it runs in.
Not to be confused with cloning, sprites can be duplicated by two methods:
This will make the new sprite appear in the new sprites area with all of the same costumes, scripts, and sounds.
Variables for all sprites will be the same for each clone, but variables for this sprite only will be different for each clone.
There are two different types of cloning implemented in different Scratch modifications. They are commonly referred to as "Panther-style cloning", and "BYOB-style cloning".
In Panther-style cloning, a clone inherits its parent's properties, but is only a clone of it, not a new sprite. Other sprites can sense the clones, using the Touching ()? block, with the parent as its argument. The code for Panther-style cloning was actually implemented in Scratch 1.4, hinting that it was a planned feature, but wasn't added. Scratch 2.0 uses this style of cloning.
In BYOB-style cloning, a clone is a new sprite in the sprite list, with editable data all of its own. Clones are created with an Operators block "(clone)", which clones a sprite and reports a reference to it, which can then be used to control it.
Read the original:
- Cloning - The New York Times [Last Updated On: June 10th, 2016] [Originally Added On: June 10th, 2016]
- Cloning - Learn Genetics [Last Updated On: June 12th, 2016] [Originally Added On: June 12th, 2016]
- Cloning Fact Sheet - Genome.gov [Last Updated On: June 12th, 2016] [Originally Added On: June 12th, 2016]
- Reasons Against Cloning - VIDEOS & ARTICLES [Last Updated On: June 17th, 2016] [Originally Added On: June 17th, 2016]
- How Cloning Works | HowStuffWorks [Last Updated On: June 17th, 2016] [Originally Added On: June 17th, 2016]
- Cloning - Wikipedia, the free encyclopedia [Last Updated On: June 17th, 2016] [Originally Added On: June 17th, 2016]
- How Cloning Works | HowStuffWorks [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- Cloning [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- Cloning - Let Us Reason [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- The Ethics of Human Cloning and Stem Cell Research ... [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- Cloning = Cruelty | Compassion in World Farming [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- Cloning - Wookieepedia - Wikia [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- ::Cloning:: - Mount Holyoke College [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- What is Cloning? (with pictures) - wiseGEEK [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- Cloning - Types, Technique, Animals and More [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- What is Cloning? - Learn Genetics [Last Updated On: June 19th, 2016] [Originally Added On: June 19th, 2016]
- Molecular Cloning [Last Updated On: June 21st, 2016] [Originally Added On: June 21st, 2016]
- Reasons Against Cloning - VIDEOS & ARTICLES [Last Updated On: June 21st, 2016] [Originally Added On: June 21st, 2016]
- Cloning Blues - TV Tropes [Last Updated On: June 21st, 2016] [Originally Added On: June 21st, 2016]
- Cloning (Stanford Encyclopedia of Philosophy) [Last Updated On: June 30th, 2016] [Originally Added On: June 30th, 2016]
- Cloning - Science Daily [Last Updated On: June 30th, 2016] [Originally Added On: June 30th, 2016]
- Cloning - Food and Drug Administration [Last Updated On: July 3rd, 2016] [Originally Added On: July 3rd, 2016]
- Human cloning - Wikipedia, the free encyclopedia [Last Updated On: July 8th, 2016] [Originally Added On: July 8th, 2016]
- Human Cloning: What is cloning? How to clone. Is cloning ... [Last Updated On: August 16th, 2016] [Originally Added On: August 16th, 2016]
- Human Cloning | The Center for Bioethics & Human Dignity [Last Updated On: August 19th, 2016] [Originally Added On: August 19th, 2016]
- News - Clonaid.com [Last Updated On: August 23rd, 2016] [Originally Added On: August 23rd, 2016]
- Cloning Fact Sheet [Last Updated On: September 11th, 2016] [Originally Added On: September 11th, 2016]
- Dolly (sheep) - Wikipedia, the free encyclopedia [Last Updated On: September 18th, 2016] [Originally Added On: September 18th, 2016]
- DNA Cloning with Plasmid Vectors - Molecular Cell Biology ... [Last Updated On: September 18th, 2016] [Originally Added On: September 18th, 2016]
- Cloning/Embryonic Stem Cells - National Human Genome Research ... [Last Updated On: October 4th, 2016] [Originally Added On: October 4th, 2016]
- Pros and Cons of Cloning - Buzzle [Last Updated On: October 4th, 2016] [Originally Added On: October 4th, 2016]
- Cloning - Wikipedia [Last Updated On: November 8th, 2016] [Originally Added On: November 8th, 2016]
- Mammoth - Wikipedia [Last Updated On: January 25th, 2017] [Originally Added On: January 25th, 2017]
- Molecular Cloning: Basics and Applications | Protocol [Last Updated On: January 26th, 2017] [Originally Added On: January 26th, 2017]
- Crustacean Cloning The Poetry of Science - ScienceBlog.com (blog) [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Don't fall for this 'Facebook Cloning' scam - NEWS10 ABC - NEWS10 ABC [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Beware Of 'Facebook Cloning' | 9news.com - 9NEWS.com [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Beware of 'Facebook Cloning' | KGW.com - kgw.com [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Don't fall for this 'Facebook cloning' scam | WJHL - WJHL.com - WJHL [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Don't fall for this Facebook cloning scam | WFLA.com - WFLA [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- 20 years after Dolly the sheep, human cloning is no closer - Genetic Literacy Project [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Beware of Facebook 'cloning' scam - USA TODAY [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Cloning Vector and its Characteristics | Chemistry Learning [Last Updated On: February 6th, 2017] [Originally Added On: February 6th, 2017]
- Beware of 'Facebook Cloning' - KSDK.com [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- Facebook cloning debunked - The i newspaper online iNews - iNews [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- Don't fall for this Facebook cloning scam | WDTN - WDTN [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- Hard Drive Cloning Software Why You Need It Acronis [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- Cloning - The Hastings Center [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- Hair Cloning & Multiplication | Bernstein Medical [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- This Crab Clones Its Allies by Ripping Them in Half - The Atlantic [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- Watch out for this crazy Facebook cloning scam! - Komando [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- Boffins create quantum cloning machine to intercept 'secure ... - The INQUIRER [Last Updated On: February 7th, 2017] [Originally Added On: February 7th, 2017]
- Call Kurtis Investigates: Triple Tag Team Scam Started With Cloned Facebook Profile - CBS Local [Last Updated On: February 9th, 2017] [Originally Added On: February 9th, 2017]
- Quantum Cloning Machine Reveals Clues That Could Protect Against Hacking - Photonics.com [Last Updated On: February 10th, 2017] [Originally Added On: February 10th, 2017]
- Steve Bannon wanted to make a movie about cloning, abortion, and ... - A.V. Club (blog) [Last Updated On: February 10th, 2017] [Originally Added On: February 10th, 2017]
- Police investigating recent reports of credit card cloning in Aiken ... - Aiken Standard [Last Updated On: February 10th, 2017] [Originally Added On: February 10th, 2017]
- Steve Bannon's Unproduced Movie About Cloning, Nazis, and Walt ... - Gizmodo [Last Updated On: February 10th, 2017] [Originally Added On: February 10th, 2017]
- Gang arrested for cloning debit cards, stealing money - The Hindu [Last Updated On: February 11th, 2017] [Originally Added On: February 11th, 2017]
- Phone cloning - Wikipedia [Last Updated On: February 11th, 2017] [Originally Added On: February 11th, 2017]
- Drive cloning in Windows 10 with free tools - Computerworld [Last Updated On: February 12th, 2017] [Originally Added On: February 12th, 2017]
- Why Google's Spanner Database Won't Do As Well As Its Clone - The Next Platform [Last Updated On: February 15th, 2017] [Originally Added On: February 15th, 2017]
- Scientists Are Close to Cloning a Woolly Mammoth - Popular Mechanics [Last Updated On: February 17th, 2017] [Originally Added On: February 17th, 2017]
- 20 years after Dolly: Everything you always wanted to know about the cloned sheep and what came next - The Conversation US [Last Updated On: February 18th, 2017] [Originally Added On: February 18th, 2017]
- Scientists say we can clone a woolly mammoth. But should we? - Christian Science Monitor [Last Updated On: February 18th, 2017] [Originally Added On: February 18th, 2017]
- 15 Animals That Have Been Successfully Cloned by Scientists - Interesting Engineering [Last Updated On: February 20th, 2017] [Originally Added On: February 20th, 2017]
- Must reads: Populism, sexism, cloning, and rudeness - GlobalComment.com [Last Updated On: February 20th, 2017] [Originally Added On: February 20th, 2017]
- Facebook does it again. WhatsApp launches revamped Status, cloning Snapchat - Catch News [Last Updated On: February 22nd, 2017] [Originally Added On: February 22nd, 2017]
- It's Been 20 Years Since We Cloned A Sheep. Why Haven't We ... - GOOD Magazine [Last Updated On: February 22nd, 2017] [Originally Added On: February 22nd, 2017]
- Reviving woolly mammoths will take more than two years - BBC News [Last Updated On: February 23rd, 2017] [Originally Added On: February 23rd, 2017]
- How to clone your PC hard drive using Macrium Reflect - Windows Central [Last Updated On: February 23rd, 2017] [Originally Added On: February 23rd, 2017]
- Pabrai And The Shameless Cloning Portfolio - Seeking Alpha [Last Updated On: February 23rd, 2017] [Originally Added On: February 23rd, 2017]
- 20 Years After Dolly, Where Are We With Cloning? - Inverse [Last Updated On: February 23rd, 2017] [Originally Added On: February 23rd, 2017]
- 20 years after Dolly the sheep's debut, Americans remain skeptical ... - Pew Research Center [Last Updated On: February 23rd, 2017] [Originally Added On: February 23rd, 2017]
- 20 years after Dolly: Everything you always wanted to know about ... - Bizcommunity.com [Last Updated On: February 24th, 2017] [Originally Added On: February 24th, 2017]
- Another cloning success shows technology being used by everyday graziers - ABC Online [Last Updated On: February 24th, 2017] [Originally Added On: February 24th, 2017]
- 20 years after Dolly the sheep, potential of cloning remains unclear - CNN [Last Updated On: February 25th, 2017] [Originally Added On: February 25th, 2017]
- More lessons from Dolly the sheep: Is a clone really born at age zero ... - Salon [Last Updated On: February 26th, 2017] [Originally Added On: February 26th, 2017]
- 20th Anniversary of Dolly the Cloned Sheep | Men's Health - Men's Health [Last Updated On: February 28th, 2017] [Originally Added On: February 28th, 2017]
- The Angels had two No. 97s on the basepaths, may be cloning their players - MLB.com [Last Updated On: March 1st, 2017] [Originally Added On: March 1st, 2017]
- 20 Years After Dolly: Cloning Past, Present and Future - KQED [Last Updated On: March 1st, 2017] [Originally Added On: March 1st, 2017]