ScratchData LogoScratchData
Back to _nix's profile

Interactive Clone ID tutorial!

_N_nix•Created October 29, 2021
Interactive Clone ID tutorial!
4
1
83 views
View on Scratch

Description

A simple tutorial demonstrating using "clone IDs" and broadcasts to get data that is stored in "for this sprite only" variables and lists. This tutorial assumes you know the basics of what clones are, so that's important to know first! Scroll right to the bottom for info on that. This tutorial only goes over one simple example, but there's so much more you can do with the basic principle—making clones do actions (with motion and looks blocks), changing their own data instead of just giving it back, and much more are all possible! I made an even simpler remix with most of the tutorial code cut out, if you'd like to see inside there and base your own code off of it (no credit required!): https://scratch.mit.edu/projects/592069145/ Credits: All the sprites and sounds are taken from Scratch's own asset libraries. (The "data updated" sound effect is edited with Scratch's sound editor.) Extra Notes: I tried making this project accessible if you're blind or deaf! I don't know how well it turned out, and I don't actually know anyone personally to ask, but I'd love feedback from you or any friends you'd like to share this project with. I wasn't actually planning on making this into as fleshed out of a project as I did, but the TTS and other details came together nicely when I was trying to figure out how to make everything fit on the stage without being hard to read or overwhelming. I think there's probably still some room for improvement - maybe if there were a totally different way of making the layout, like dynamically moving the stage area itself - but for a relatively simply programmed project I think it went alright! _gobo_ (scratch team plz support emotes in notes and credits ty) Also, a tutorial which goes over more of the basics or shows code on-screen would be pretty cool... but that's something for another time :P (I did make a more code-focused project ages a looooong time ago over on my one of my alternate accounts @towerofnix though! I always wanted to make something like that for clones; this isn't quite the same format, but maybe it's a good remix of the idea :P) Beginners' Clone Tutorial: Essentially, clones are copies of sprites you can create on the fly using Scratch blocks. They have the same code as the original sprite, but you can script them to do unique things using the "when I start as a clone" and "when I receive" (broadcast) blocks. Clones are very useful for saving time because you don't have to manually copy code across sprites, or make sure you have the exact same changes across a bunch of sprites that are supposed to work the same way. They are a little trickier to code than normal sprites, though, because they all have the same code - so you have to use things like "clone IDs" to distinguish one clone from another. This tutorial goes over one basic demo of that.

Project Details

Project ID592014908
CreatedOctober 29, 2021
Last ModifiedOctober 29, 2021
SharedOctober 29, 2021
Visibilityvisible
CommentsAllowed