Egg Bounce Game

by victor mbale in Living > Toys & Games

225 Views, 0 Favorites, 0 Comments

Egg Bounce Game

egg5.JPG

Welcome to another scratch instructable

About eggs

Today i'll show you how to make an egg bounce game where all you have to do is protect the egg from hitting the ground, but don't worry , the egg doesn't break

Supplies

And again all you really need is an active scratch account and your underway!

Add the Sprites

egg.JPG

Click on the cat icon in the bottom right corner and select a cat and a trampoline

Code the Trampoline

egg2.JPG

For the easiest code in the game; the trampoline

From events get 2 if space bar pressed block and bring them set one to left arrow and ont to right arrow

And then from motion grab two change x by 10 block which you can set to the number of your liking

Code the Egg

egg3.JPG

Now for the slightly tricky part.

Start with when green flag clicked block

Set your variable to score and take out a set score to 0 block

Take a forever block and an if, then block from control

Get a glide to random position block from motion

An equal to block from operations

A touching block from sensing

And a change backdrop block from looks(you could use any backdrop you like)

And put the code together

And you have your egg bounce game