Science Oxford Logo

Shoot Down the Pancakes

You can expand the game by getting your player to shoot the pancakes, instead of (or as well as!) collecting them personally.

The emulator has two buttons we haven't used yes, A and B.

Find the on A button pressed block from the Controller menu, and create a new projectile from the Sprite menu.

Name your new projectile sprite and design it (I chose arrows!), and tell them to be created from your player sprite.

Adjust the velocity until you are happy with the direction your new projectiles go.

Screenshot of blocks - on A button pressed, set projectile to projectile from mySprite with vx 50 vy 0

Adjust your overlap block, so instead of scoring when your player overlaps with your Food/Enemy/pancakes, you score when your Projectile overlaps instead.

Screenshot of blocks - on sprite of kind Projectile overlaps otherSprite of kind Food, destroy otherSprite, change score by 1

Test it out to make sure it works, then decide what you want to do next...