Easteregg Catch Game
In this tutorial you will learn how to program a catching game using the inclination sensor of your smartphone!
Download the tutorial in
here!Game
1. Create a new project. You need an object (for example, an easter egg) that the player has to catch.
2. Now add the bricks to your script step by step.
3. Now you need a object to collect the things falling down (for example a basket). Proceed as in step 1.
4. Now you have to check in the script of the egg, if the egg was also caught with the basket.
Tips
Tip1: When you start the game, you can display the axes to see which values would suit you.
For the x-axis you can choose a position between -450 and 450 and for the y-axis 500. You can find the random value generator under "Functions".
Tip2: Tap on “new..." to create a new variable.
Tip3: You can find the sensors, in our case the inclination of the phone, under "Sensors".
Extension
1. Do you want the basket to be full after a certain number of points?
Then you need to add a new look to the basket.
2. To change the appearance now, you need to insert a query in the "Repeat Continuous" loop.
3. You can also insert several looks in the eggs and let them alternate.