Make a Sprite Move on mBlock 5

Add a sprite

1. Click Sprites under the stage and click + add to add a sprite.

mceclip0.png

Note: The default sprite is Panda, and you can click × in the upper right corner of the sprite to delete it.

2. Choose the sprite you want in Sprite Library and click OK. In this example, we choose Bee1.

mceclip1.png

Bee1 appears on the stage.

mceclip2.png

 

Move the sprite

Now, let's make Bee1 move.

1. Drag the Events block "when green flag clicked" to the Scripts area.

mceclip3.png

2. Drag the Motion block "move ( ) steps" and drop it under the "when green flag clicked" block.

mceclip4.png

3. Click the green flag under the stage.

Bee1 moves.

move_a_sprite.gif

 

For details about how to use the blocks provided for sprites, see Block Reference.
With mBlock 5, you can create your stories, animations, and games. If you have no idea how to start, you can learn from example programs.
Choose Example Programs on mBlock 5 and find examples that interest you.

mceclip0.png

Was this article helpful?
4 out of 9 found this helpful

Comments

0 comments

Please sign in to leave a comment.