Mosquito Patrol

All the Sprites

Now you have a parrot that you can move around using the arrow keys. Nice! Time to add some mosquitos for it to catch!

Click the New sprite button. Scratch doesn’t have any ready-made mosquito costumes, so you are going to draw one!

If your mosquito is a bit big compared to your parrot, you can use the size control to make both sprites the right size!

Change the value in the size control to make the sprite bigger or smaller.

Nice! Later, you’re going to add some code to make the mosquito move around on its own, without help from the player. Your player will be the parrot, trying to catch the mosquito.

What about the backwards parrot?

It does look a little funny to have that parrot flying backwards. Just like you’d usually turn around rather than walking backwards, the parrot would turn around rather than flying backwards. Luckily for you, Scratch has a block for this!

The point in direction block lets you pick the direction your sprite is pointing in. You’ll find it in the Motion blocks section. You can type in any number of degrees, to make the sprite point wherever you like.

Grab a couple of point in direction block from the Motion list and connect them to your parrot’s code, like this:

whenleft arrowkeypressedpointindirection-90move-10steps
whenright arrowkeypressedpointindirection90move10steps

Since the parrot has turned around, change the direction it flys in when the left arrow is pressed:

whenleft arrowkeypressedpointindirection-90move10steps

If you tried moving the parrot around after you added the point in direction blocks, you might have noticed something a little strange happening. The parrot may not be turning quite right!

Upside down parrot

Why does it go upside down?

The problem here is that the parrot sprite started, as all sprites do, with the ‘all around’ rotation style, and what you need it to have is the ‘left-right’ style.

As usual, there’s a block for that, and it’s in Motion!

Look in the Motion category for the block set rotation style.

Add the block to your reset code from earlier and set the rotation style to left-right, like this:

whenclickedsetrotationstyleleft-rightgotox:0y:0