In this add-on, you will program lettersto flash across the screen, and spell out your cause.
To start, click choose sprite from library,then click letters.
There are a few different styles of letters.
Choose a style you like, and find the first letterof the name of your cause.
To add the rest of the letters of your cause,select the costumes tab,click choose costume from library,and add the next letter.
Repeat this process until the entire word is spelled out.
Add the letters to a single sprite.
Each letter will be its own costume within a sprite.
Take a look at the example project.
When the play button is pressed, the letters flashacross a multi-colored backdrop.
Then, the letters disappear and the backdrop switches.
At the same time, the rest of the spritesappear on the screen.
To make the letters flash across the screen whenthe play button is pressed, select the letter sprite,and add a when I receive play block.
Add a next costume block to makethe letter on screen change.
To spell out the entire word, add a repeat loop.
Make the number in the repeat loop one lessthan the number of letters in the word.
Sports is six letters.
The animation will start with the first letter, S,then change costume five times to showthe five following letters and spell out the entire word.
Try it out.
Letters were changing too fast to read the word.
To fix that, add a weight block afterthe next costume block.
Adjust the time in the weight block untilthe name looks readable.
To make the letter sprite start on the first letterof the word when the play button is pressed,add a set costume block above the epeat block.
Select the first letter of the word in the drop-down menu.
Add a weight block under this block too.
To make the letter sprite disappear after it spells outthe name of your cause, add a hide block atthe bottom of the code stack.
Make the letter sprite re-appear when the play buttonis clicked, by adding a show block underthe when I receive play block.
Run your code again.
This looks pretty good, but the letters look a little small.
Add a set size block under the when I receive block,and set the size to something greater than 100%.
This example uses 200%.
Run your code.
This is a pretty cool effect.
You can stop here and move onto your next add-on.
Or if you'd like, make the backdrop changeand the other sprites disappear whenthe letters flash on the screen.
Then, program the sprites to re-appear afterthe word is spelled out.
To do this, select the stage and add a when I receive block.
Select the play message from the drop-down menu.
Under this, add a switch backdrop block,and select beach ball from the drop-down menu.
To make the other sprites hide whenthe animation starts, add a hide block underthe when I receive play block for each sprite.
Make the sprites re-appear afterthe letters flash on the screen, by selectingthe letter sprite and adding a broadcast blockto the bottom of the code stack.
Click the drop-down menu, select new message,and call the message something like, show sprites.
For each sprite, add a when I receive blockand select show sprites from the drop-down menu.
Under this, add a show block.
Select the spokesperson sprite.
This sprite delivers the opening messagewhen it receives the play message.
To make the sprite wait to say the messageuntil after the letters have flashed on the screen,click and drag the say blocks fromthe when I receive play block tothe when I receive show sprites blockand place them under the show block.
Finally, to change the backdrop back to the oneyou selected after the letters stopped changing,click the stage, and add a when I receive block.
Select the message you just createdand add a switch backdrop block.
Select your original backdrop from the drop-down menu.
Click the play button to try out your code.
Awesome, what a great way to start your viral video.
Now it's your turn.
Program the letter sprite to flash across the screen.
Then, hide the other sprites whenthe letter sprite is shown.
Finally, show the other sprites after the letter spritehas finished spelling out the name of your cause.