This is because my solution only changes to the letter but does not draw it or create a copy that stays after.
#HOW WELL DOES CRUCIAL CLONE WORK CODE#
If you run the code above, you will see your sprite cycle through each letter in your text, but not actually write any of them. I start it at 1 and increase it by 1 each time the “Repeat” block is run so that every letter, from the first to the last, will be read. I have a counter called “char” which is a number that is referring to which character in the text is being looked at by the “Letter # of text” block.This means it will repeat once for each letter. I use the Control block “Repeat” and have it repeat as many times as there are letters in the text provided.This is actually optional, but saves me from repeating the actual text twice, in the “Length of text” block and the “Letter # of text” block. If you want it to work with both, try writing code that can convert text to all uppercase or lowercase before it is used (I am not covering it in this tutorial, but it’s a good exercise for you to try). This solution will only work with lowercase letters. While that code might look a bit complex, you can imagine how as you become more experienced, you would be able to more quickly identify and put together the blocks in Scratch that will do what you want. I can write and position text on the Scratch stage mainly using blocks from the Motion category and some blocks from the Control category (for clones).I can read and manipulate text in Scratch, letter by letter, using blocks in the Operators category.This would use blocks in the Looks category. I can display custom art, including letters, as a sprite and different variations on a sprite, like letters of the alphabet, would be like sprite costumes.The solution I came up was based on answering each of these questions: How might we write and position the text?.How could I display custom letters without using those blocks?.Considering that limitation led to three questions: I approached this problem by starting with what I knew, based on my experience with Scratch: If I’m trying to display custom styled text in Scratch, I can’t use the normal ways of displaying text, which use the built-in blocks of “Say text” and “Think text”. Being able to do this quickly is based on your experience, both with Scratch and outside of Scratch.
#HOW WELL DOES CRUCIAL CLONE WORK HOW TO#
With the art challenge (mostly) out of the way, we can take a look at the coding challenge: how do we display our custom art instead of the plain text of the speech bubble? When I come across a challenge that might seem complex, I try to break it down into smaller pieces to see if I can solve any of the smaller parts of the problem first, eventually tackling the parts that I don’t (yet) know how to do.