In this add-on, you'll add some fun effectsto your music video by making your sprite grow upin the corner of the screen and leaving a trail.
(upbeat music)
Click on your sprite.
This example uses a shark,but you can use any sprite you like.
And go to the More Blocks menu.
Click Make a Block,and name the new block Magic.
Naming the block Magic won't make it do anything.
Need to add code to the define Magic stackto tell the computer what it should dowhen the block is run.
You need to add several blocks to Magic to define it.
This effect involves several steps.
It's easier if you break it down into three partsthat define what you want the sprite to do.
Grow, move, and stamp copies of itself to look like a trail.
Then build the code to accomplish each step.
In this example, the code changes the sprite size by 10,making it a little bigger.
Then, it moves to the right 10 steps,and then up 10 steps.
Finally, it stamps a copy of the sprite.
The code is inside a repeat 15 loopso it will perform each of the steps 15 times.
Take one of the dividers in the blocksto change how many times the sprite stamped itself,until you come up with the right effect for your program.
Test your code.
Cool, the sprite grows and leaves a trail.
But if you click the code stack again,the sprite grows even bigger and goes off the stage.
You want the sprite to grow from small to largeand leave a trail many times during a songso you need to add code that returns the spriteto its original position and size.
Getting a character in your music videoto perform several different behaviors at once like thatis pretty complex.
The easiest way to approach a multipart problem like thisis to break it down into smaller pieces.
For example, build a code that makes your sprite moveand grow first,then build a code that clears the stageand resets the sprite to it's original position and size.
Finally, create code that tells your spritewhere to start over again.
You created and defined a Magic block,but now you need to tell the computer when to run it.
Add a one flag clickblock and a forever loopif your sprite doesn't already have one.
Then, use the Magic block with a Weight blockor other blocks to make the Magic happenwhen your program is run.
(upbeat music)
Now it's your turn.
Add or choose a sprite that will grow and leave a trail.
Make a block called Magic and add code to define that block.
Then use a When flag, click to fit and a forever loopto add this cool effect to your music video.
Choose an Add-On
play_circle_filled
Dizzy Sprite
In this add-on, you will make a spinning sprite.
arrow_forward
play_circle_filled
Color Change
In this add-on, you create cool color change effects.
arrow_forward
play_circle_filled
Bounce Around
In this add-on, you will create a block that programs your sprite to bounce around the stage.
arrow_forward
play_circle_filled
Dance Fever
In this add-on, you will give your sprite some dance moves.
arrow_forward
play_circle_filled
Make Some Magic
In this add-on, you will create some sprite magic.
arrow_forward
play_circle_filled
Squeak
In this add-on, you will add a sprite with cool movement effects to appear and hide on the stage.
arrow_forward
play_circle_filled
Background Change
In this add-on, you will switch up the background.