How To Make A Hide And Seek Game In Scratch

This is a step to step guide, explaining how to make a hide-and-seek game in Scratch. In this post, in the end, we will achieve an animated sprite, which can move eat, and change colour. Before we begin, you will need an account in Scratch. If you don’t have one then, head to how to create an account in scratch.

Choose a Backdrop To Make A Hide And Seek Game In Scratch

How To Make A Hide And Seek Game In Scratch 1

Click the  icon to open the Backdrop library:

How To Make A Hide And Seek Game In Scratch 2

Then choose a backdrop for your game (such as ‘moon’ or ‘space’).

How To Make A Hide And Seek Game In Scratch 3
How To Make A Hide And Seek Game In Scratch 4

Choose a Sprite To Make A Hide And Seek Game In Scratch

How To Make A Hide And Seek Game In Scratch 5

Click this icon  to choose a new sprite:

How To Make A Hide And Seek Game In Scratch 6

Choose the sprite you want for your game:

How To Make A Hide And Seek Game In Scratch 7

In Scratch, characters are called sprites.

Tip: If you don’t want the cat in your project, you can delete it using the scissors tool.

How To Make A Hide And Seek Game In Scratch 8

Click on the scissors, then click on the cat.

Hide Your Sprite

Click the Looks category. Drag out a show and a hide block. Click each block to see what it does.

Build a script like this:

How To Make A Hide And Seek Game In Scratch 9

Your script will look like this:

How To Make A Hide And Seek Game In Scratch 10

Click anywhere on the script to try it.

Loop It

Make your script keep going. Click the Control category and add a forever loop, and wrap it around, like this:

How To Make A Hide And Seek Game In Scratch 11

Start with a Green Flag

Make your script keep going.

How To Make A Hide And Seek Game In Scratch 12

Click the Events category. Drag out a when clicked block and snap it on top.

How To Make A Hide And Seek Game In Scratch 13

Drag the green flag to start your script:

How To Make A Hide And Seek Game In Scratch 14

If you want it to stop, click the stop sign

Click and Say

Make your sprite react when it’s clicked. Add a script like this:

How To Make A Hide And Seek Game In Scratch 15

Note: The sound may be different for your sprite.

Type in the words you want your sprite to say.

Type in 1 for the number of seconds.

Click the green flag to start your game.

How To Make A Hide And Seek Game In Scratch 14

Now, click your sprite to see it react.

How To Make A Hide And Seek Game In Scratch 17

Play with the Timing

Make your sprite hide for a random number of seconds before appearing again.

Drag out a pick random block. Insert it in the wait block, like this:

How To Make A Hide And Seek Game In Scratch 18

Your script should look like this:

How To Make A Hide And Seek Game In Scratch 19

You can try typing in a different range of numbers.

Go to a Random Spot

Make your sprite jump to a random spot.

Click the Motion category. Drag out a go-to mouse pointer block.

Insert it and choose a random position from the menu:

How To Make A Hide And Seek Game In Scratch 20

Your script should look like this:

How To Make A Hide And Seek Game In Scratch 21

Click for Points

Add a variable to keep score.

How To Make A Hide And Seek Game In Scratch 22

Add a point each time the sprite is clicked:

How To Make A Hide And Seek Game In Scratch 23

Use set the score to 0 to reset the score at the beginning of your program:

How To Make A Hide And Seek Game In Scratch 24

Your scripts will look something like this:

How To Make A Hide And Seek Game In Scratch 25

Click the green flag to start your game.

How To Make A Hide And Seek Game In Scratch 14

Add to Your Game

What else do you want to add to your game? Try some of these ideas.

MAKE A HIDING PLACE

Choose a tree or other sprite to be a hiding place.

How To Make A Hide And Seek Game In Scratch 27

Add this script to make it go to the front:

How To Make A Hide And Seek Game In Scratch 28

Tip: If you drag a sprite, it goes to the front layer.

ADD MORE CHARACTERS

Add more sprites.

You can copy the scripts from one sprite to the other sprite.

To copy, drag each script over the other sprite’s thumbnail. When you let go, it copies the script:

How To Make A Hide And Seek Game In Scratch 29

Or, if you’re logged in, you can use the Backpack to copy scripts.

Trushil Shah

Author: Trushil Shah

My name is Trushil Shah and I am 10 years old. I live in Australia, a multicultural country. I have a little sister. Here are many things I like to do, to see, and to experience. I like to play sports, study, do technology experiencing, go out into the world, read, write, see the lunar eclipses by a glimpse, share time with my family, code in scratch and most of all have fun. I like flowers in spring, rain in summer, leaves in autumn, and snow in winter. I want to be a doctor or engineer when I grow up. I like many different types of food. My favourite subject of all is Maths. I am always trying to do my best. Whatever I do I want to do best.

44 thoughts on “How To Make A Hide And Seek Game In Scratch

  1. Long time supporter, and thought I’d drop a comment.

    Your wordpress site is very sleek – hope you don’t
    mind me asking what theme you’re using? (and don’t mind if I steal it?
    :P)

    I just launched my site –also built in wordpress like
    yours– but the theme slows (!) the site down quite a bit.

    In case you have a minute, you can find it by searching for “royal cbd” on Google (would appreciate
    any feedback) – it’s still in the works.

    Keep up the good work– and hope you all take care of yourself
    during the coronavirus scare!

    ~Alex

  2. Hi Alex,

    I searched up your website, but I couldn’t access it, because I am under 18 years of age, and your website says you can only access it if you are above 18 years of age. This is why I called my dad, and my dad logged in.

    You have many visitors, and I realised that because there were many people who bought special products. Your website flows well, and in my opinion, it doesn’t slow down a bit. I looked at all the tabs, and I like how you have so much information. I also like the logo a lot.

    The only thing I would suggest to you is that maybe use Grammarly, as there are a couple of punctuation and spelling errors. By the way, I will have to ask my dad what my theme is later. Maybe just wait for 1 more day, please.

    ~Trushil

  3. Oh my goodness! Impressive article dude! Many thanks, However
    I am experiencing troubles with your RSS. I don’t understand the reason why I can’t join it.
    Is there anybody having the same RSS problems? Anybody who
    knows the answer can you kindly respond? Thanx!!

  4. We are a gaggle of volunteers and starting a new scheme in our community.
    Your web site provided us with useful info to work on. You have performed an impressive process and our whole community
    will likely be grateful to you.

  5. An outstanding share! I have just forwarded this onto a friend who has been conducting a little research on this.
    And he actually ordered me lunch because I stumbled upon it for him…

    lol. So allow me to reword this…. Thanks for the meal!!
    But yeah, thanks for spending the time to discuss this subject here
    on your website.

  6. Hi, Neat post. There’s a problem together with your website in web explorer,
    would check this? IE nonetheless is the marketplace chief
    and a big portion of people will omit your excellent writing due to this problem.
    31muvXS cheap flights

  7. magnificent post, very informative. I’m wondering why the other experts of this sector don’t realize this.
    You should continue your writing. I am sure, you’ve a
    huge readers’ base already! yynxznuh cheap flights

  8. It’s a shame you don’t have a donate button! I’d most certainly donate to this outstanding blog!

    I guess for now i’ll settle for bookmarking and adding your RSS feed to my
    Google account. I look forward to new updates and will talk about
    this website with my Facebook group. Talk soon! cheap flights 32hvAj4

  9. I was curious if you ever considered changing the page
    layout of your website? Its very well written; I love what
    youve got to say. But maybe you could a little more in the way of content so people could connect with it better.
    Youve got an awful lot of text for only having one or
    2 images. Maybe you could space it out better?

  10. Everything composed made a great deal of sense. However,
    what about this? suppose you added a little information? I ain’t saying
    your information isn’t good, however suppose you added a title
    that grabbed folk’s attention? I mean How To Make A Hide And Seek Game In Scratch – Trushil's Disc is kinda plain. You ought to peek at Yahoo’s home
    page and note how they create article headlines to grab people interested.
    You might try adding a video or a related picture or two to grab people excited about everything’ve got to say.

    Just my opinion, it could bring your blog a little bit more interesting.

  11. We are a group of volunteers and starting
    a new scheme in our community. Your web site offered us with valuable info to
    work on. You have done an impressive task and our entire neighborhood shall be grateful to you.

  12. Having read this I thought it was extremely enlightening. I appreciate you spending some time and effort to put this information together.
    I once again find myself spending way too much time
    both reading and posting comments. But so what, it was still worthwhile!

  13. I’m truly enjoying the design and layout of your blog.
    It’s a very easy on the eyes which makes it much more pleasant for me
    to come here and visit more often. Did you hire out
    a developer to create your theme? Great work!

  14. I just like the valuable information you supply in your articles.

    I will bookmark your blog and check once more right here frequently.
    I’m fairly certain I’ll be informed many new stuff proper right here!
    Good luck for the next!

  15. I’m extremely impressed with your writing skills and also
    with the layout on your weblog. Is this a paid
    theme or did you customize it yourself? Anyway keep up the excellent quality writing, it is rare to see a great
    blog like this one nowadays.

  16. I was more than happy to uncover this site. I want to to
    thank you for ones time just for this fantastic read!! I definitely appreciated every little bit of it and I have you saved as a favorite to check out new things on your web site.

  17. I absolutely love your blog.. Very nice colors & theme.
    Did you develop this amazing site yourself? Please reply
    back as I’m wanting to create my very own site and would love to know where you got this from or
    just what the theme is named. Thank you!

  18. Right here is the perfect webpage for everyone who hopes to find out about this topic.
    You know a whole lot its almost hard to argue with you
    (not that I personally would want to…HaHa). You certainly put a fresh spin on a subject which
    has been written about for years. Excellent stuff, just excellent!

  19. Right here is the perfect site for anybody who really wants to
    understand this topic. You realize so much its almost tough to
    argue with you (not that I really will need to…HaHa). You
    certainly put a fresh spin on a topic that’s been discussed for ages.

    Excellent stuff, just wonderful!

  20. Its like you read my mind! You appear to know a lot about this,
    like you wrote the book in it or something. I think that you could
    do with some pics to drive the message home a bit, but other than that, this is
    great blog. A great read. I will certainly be
    back.

  21. Pingback: theweedtube
  22. Pingback: masterdomino99
  23. Pingback: interqq

Leave a Reply

Your email address will not be published. Required fields are marked *