Spot The Difference Game Tutorial
In Spot The Difference Game, the player has to spot the difference between two identical images. When player spot the difference, the image disappear and the score increase by 1.
Player wins, if he spot all the differences within time limit, and loses if the time is up.
You can play the spot the difference game here https://scratch.mit.edu/projects/525313705/
Choose the backdrop to the game having same piture both the side make game more complex.
Draw the straight line to separate the sides, make sure center it with 0’0 X and Y coordinates.
How to make similar images appear both the side ? For this we use cloning. First we make appear images on the left side and then we offset the clone images to right side.
First choose the 20 to 30 sprites as costumes.
Code your program so that each time clone is created, different costume is choosen. First, make it appears randomly only on the left side of the screen. To make this happen create ‘randon X’ and ‘random Y’ variable. Choose the number between 20 and 210 for x coordinates and 160 to -160 for y coordinates to avoid edges.
To make appear same images right side of the screen, you have to offset the x position of clones by -240. This will make the same images appear other side.
Lets introduce some difference images on the other side. Add 10 different sprite as costumes. Procedure is similar to the identical image, but difference image is appear only right side of the screen.
Create variable called ‘Total Difference’ to track the difference image found. When game starts, set the Total difference to between 5 to 10.
If the player spot the difference image will disappear and the score will increase.
Based on the difference spot by the player, the score will increase. If player spot all the difference image i.e, when score equal to total difference, then broadcast the message player won.
Make the game more interesting and difficult by adding timer to the game. Set the default timer 30 sec, when the green flag clicked. If timer becomes zero, and you did not spot all the difference, the game will be over.
Here's a step-by-step tutorial to create a platformer game similar to Super Mario in Scratch:…
Here's a step-by-step tutorial to create a Whack-a-Mole game in Scratch with code snippets: 1.…
In this scratch tutorial, you will create a memory game in which you have to…
In this article, we are going to teach you how to program your owncustomized version…
About Duck Hunt Game: This is a remake of the classic video game Duck Hunt.…
In this Tutorial, we attempt to make the popular snake game on Scratch About Snake…
This website uses cookies.