In this add-on, you'll learn fun ways to add another sprite to your story. A sprite canexpress its personality through the way it moves. For example, a funny sprite mighthop onto the stage, a cool sprite might drop from the sky, or a heroic sprite might zoom in.
First, add a new sprite. Your starter project contains special sounds you can use to giveemotion to your sprite's entrance. To hear those sounds, click on the Stage, click onthe sounds tab, and use the play button.
When you find a sound you like, drag it from the list onto your sprite.
Drag out a “play sound” block, and choose the sound you just added.
Next, program the sprite’s movement. Click on the Motion menu. The blocks in the Motionmenu update each time you move the sprite on the stage to show the sprite's current X and Y position.
To make your sprite enter at a specific point on the stage, drag the sprite to where itwill start its movement. Add a "go to" block. Drag the sprite to the next point it willmove to on the stage. Drag out a “Glide” block, and snap it to the “goto” block.
The “Go To” block and the “Glide” block have different X and Y values because eachblock shows the position the sprite was in when the block was selected from the menu.
Move the sprite again, and add another “Glide” block. Test it out.
That's a very slow move! Change the values in the “glide” blocks to smaller numbersto speed up the sprite’s movement. Add the “play sound” block to the stack.
Repeat these steps to create the entire path of the Sprite's entrance. Move the spriteto the next point, drag out a “Glide” block. Move the sprite to another spot, dragout another “Glide” block. Test your code often to make sure you like how the sprite is moving.
When you have a movement you like, click on the "events" menu and add a “When I receive”block to the top of the stack. Click on the dropdown, choose new message, and name themessage. Next, click on the sprite that contains the rest of your story, and add a “broadcast”block to tell the new sprite when it is time to make an entrance. Test it out!
That looks great. If you want your sprite to hide until it is time for its entrance,add a "When flag clicked" event and a “hide” block, then put a “Show” block under the“When I receive” block. Now, the sprite will hide when the project starts, show upwhen it is time to enter the story, and make an entrance onto the stage.
Your sprite can enter your story in many ways. Code a movement for your sprite that showsits personality, emotional state, or energy level. Explore and play with the types of movement you can create.
Now, it's your turn. Add a sprite to your story. Drag a sound from the stage onto your sprite.
Drag the sprite to different locations on the stage, and use “Go to” and “Glide” blocksto control the sprite's speed and movement onto the stage.
Choose an Add-On
Program your character to escape the scene!
Make a conversation happen between two characters in your story.
Between the Scenes
Program a fading transition to change the scene in your story!
Deus Ex Machina
Add a new sprite that fixes the conflict and resolves the premise in your story.