ScratchData LogoScratchData
Back to TheLogFather's profile

Get clone costume name

THTheLogFather•Created April 30, 2014
Get clone costume name
55
41
973 views
View on Scratch

Description

Tutorial project showing how to find costume name as a clone. It's fairly easy to get a sprite's costume name, using the blue sensor block "costume name of sprite" (though there is a slight trick to this if you want it for the current sprite). However, this will not work for a clone - it only gives the original sprite's name, not the clone. We have "backdrop name" (as well as "backdrop #") to get this info for the backdrop, but we only have "costume #" for a sprite - no "costume name" - meaning there's no direct way for a clone. Instead, this project constructs a list of costume names, and then reads the appropriate item from that using "costume #". For another example of this technique (with a lot more costumes), see: http://scratch.mit.edu/projects/20966625/ This project also gives some ideas for making a fairly simple, walk-though tutorial, using clones to make different elements appear at different times, and in different ways (enjoy the broken, swinging block effect :D ).

Project Details

Project ID21427539
CreatedApril 30, 2014
Last ModifiedAugust 28, 2016
SharedMay 4, 2014
Visibilityvisible
CommentsAllowed