Hide and Seek

About this lesson

Sprite hides and you have to click on it when it shows up. Adapted from Scratch starter project

Step 1
Start by deleting the cat sprite.
Temp1445977250
Step 2
Then choose a new sprite from the library
Temp1445977375

Pick and sprite you'd like. Like this

Temp1445977514
Step 3
Add a new backdrop.
Temp1445977614

Choose any backdrop you'd like. Just like how you chose a sprite

Temp1445977734
Step 4
Go to the Scripts tab of the Ghost and add this code
Temp1445978021

When the game starts, show the Ghost and move it to the center

Step 5
Add this code to your ghost sprite
Temp1445978518

This makes the ghost hide and appear again at a random spot on the screen. Then it says to repeat this forever

Step 6
Attach these two blocks together into one block
Temp1445978692

You can hit the green flag to see how it looks so far

Temp1445978725
Step 7
Add a points variable to the ghost
Temp1445978902

A variable is like a box we can put our points into and store them

Step 8
Call your new variable "Points"
Temp1445978950
Step 9
Now give the player a point if he clicks on the ghost
Temp1445979154

We'll make the ghost hide again too, so that the player can only click it once each time

Information
Step 10
Look, the points variable appeared at the top

Now the player can see how many points they've earned

Temp1445980275

You may wish to test out the game to see it in action

Step 11
One last thing

We need to reset the points to 0 when the player starts the game!

Temp1445980370
Challenge
Step 12
Add something to your game

Now your lesson is complete, but is your game finished?

Temp1445980588

Make this game your own! Add something new, like a new sprite that takes away points when you click it.
Maybe make the ghost smaller or faster

Anything you can think of! Have fun!

Hide and Seek Info

Account

MVCode Clubs

Created By

Missing tiny cara

Course:

Intro to Scratch: 1st/2nd Grade

Access Level

public

For Teachers and Schools

Teach coding to your students with MVCode Teach

MVCode offers an integrated product designed to teach coding to students.

Learn more about MVCode Teach