This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-04-03 10:51:37

chasing4life
New Scratcher
Registered: 2013-04-03
Posts: 1

Simple game for young children

I am hoping to create a game similiar to "Memory" where the child turns over a card and sees an image, turns the card over and tries to find the matching card by turning over other cards. I need the game simple and need to be able to customize the images. I am not great at technology, but was referred to Scratch by a librarian. Is there someone that can help me do this? Is scratch the answer?

Offline

 

#2 2013-04-03 14:09:05

xlk
Scratcher
Registered: 2013-03-18
Posts: 57

Re: Simple game for young children

I'd recommend to first try out the different "blocks" (which in essence are commands, represented by blocks in scratch), to know what you can make it do.
Now for the game itself, I'd recommend using a list (this is one of the more complex things -_-') to which the image numbers are saved. then have a bunch of sprites that, when clicked, switch to the "costume"(these are how different images for sprites are referred to) which their number in the list points to. (EG, sprite one looks at the first number of the list, and change to costume (first number of the list))
That would get cards to show an image when clicked.
for the matching part, that's harder.
You'd have to have 2 variables, let's call them "card 1" and "card 2".
initially, card1 and card2 are set to 0.
when a card is flipped, it checks card1.
If it's 0, it sets it to the card's image number
If not, it sets card2 to the card's image number and:
-if card1 = card2, then make both cards stay flipped, add 1 to score, whatever.
-if card1 != card 2, then flip them back.

If you want the actual code already made, you might be able to find some game already uploaded that is similar. If you want to make it from scratch, this should help you get an idea of how to do it.

Offline

 

Board footer