Bear Fractions

In this project, we're going to make a bee eating games, with a fancy tongue and fancy moving bees!

1) We need two sprites: one thing that eats and one thing that gets eaten. Pick out some cool ones. I did a bear and bees but a gecko and flies, or an adventurer (with a whip) and treasure could also be cool. Pick a backdrop too!

2) Give your eater sprite movement controls. We will use the mouse later, so it will be more comfortable to use w, a, s, and d rather than arrow keys.

3) This project is themed around learning the Pen tool! On the bottom left of your scratch page is a button with two block silhouettes and a plus symbol. Maybe you've never noticed it before? I wonder what it does....

Whoa, look! There are lots of other types of blocks we didn't know about! Let's pick "Pen" and learn about drawing.

Make a new blank sprite, and draw a single red dot in the center of the sprite. Rename the sprite to "Drawer." We are going to use this sprite to draw using the pen blocks. Experiment with the Pen blocks; figure out how to draw a line from the bottom left to the top right.

4) Make the line start from your eater's mouth. Your eater will move around in the final game, so make sure to make it dynamic.

5) Erase your line and redraw it constantly, so as to give the illusion of motion.

6) Now let's work on the other end of the line. Like the mouth, update it constantly to follow your mouse pointer.

7) Instead of teleporting to your mouse pointer, make the tip walk towards it when you click. Only erase once it reaches your mouse pointer. Wow, snakey! Weird! Prevent your eater from moving while the tongue is shooting out.

8) Alright, great! Now let's work on the eaten sprite. Make clones appear the on the right edge of the screen constantly.

9) Now make your eaten sprites travel to the left. Make them move all crazy-like. I used some fancy math but you can use anything you like. Maybe you make them zig-zag, or loop-de-loop, or wholly-hobble, or gimmy-gone, or jangle-walk. If you really want to copy my math for moving, you can highlight this invisible text:

Point in Direction ((cos of (timer * 300)) * 50) - 90

Move 4 steps

Otherwise, also make them delete when they reach the left side.

10) When your eaten sprites touch your tongue, get points and delete them. Also, you should set your drag mode to "not draggable." This will stop the player from being able to drag bees around on accident in the final version (You can still drag them in the editor, don't panic!). You can find this block in sensing.

11) Add a timer to your game, so players will work hard to eat as many things as possible.

12) Finally, add start and gameover screens to your game. Go ahead and add sound and music too, if you haven't already. Great job!

Bonus) For an advanced challenge, make the tongue also retract, and suck in the bees, rather than just deleting them. Invisible hints below:

Hint #1: Try using Lists to track everywhere your tongue goes.

Hint#2: If you use a "My Block;" you will get an option when making one to not screen refresh. This reduces how often your game needs to re-draw the whole screen and significantly reduces lag.