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

#1 2013-04-18 14:33:03

bcampos
New Scratcher
Registered: 2013-04-18
Posts: 5

Help with a word-base game

So I've been trying to create a word based game for younger age children.
I am wondering how to make a word show up like Apple and have the "L" of missing.
I also want the children to be able to press the L on the keyboard so it shows up and a point is added to a total score.

Any help will be great

Offline

 

#2 2013-04-18 14:41:11

EH7meow
Scratcher
Registered: 2013-03-23
Posts: 24

Re: Help with a word-base game

What you need to do is make a new sprite (the button is below the viewer), now use the text tool to write the word App-e. Now if you go to the scripts for Apple do something like:

when [L v] key pressed //Your scripts after this.
Hope this helps.

Last edited by EH7meow (2013-04-23 13:25:38)


Love lovehearts? Love mending lovehearts? Then you'll love Love Doctor

Offline

 

#3 2013-04-18 14:43:02

bcampos
New Scratcher
Registered: 2013-04-18
Posts: 5

Re: Help with a word-base game

EH7meow- I will try this out. Thank you

Offline

 

#4 2013-04-18 18:47:20

bcampos
New Scratcher
Registered: 2013-04-18
Posts: 5

Re: Help with a word-base game

What if I need multiple words to show up after one another? Would I have to make multiple sprites?

Offline

 

#5 2013-04-18 19:33:11

Tohmis
Scratcher
Registered: 2013-02-18
Posts: 58

Re: Help with a word-base game

Hey. The system I think of is a bit complicated and this is your first project I think so if you don't know eanything about lists and variables this won't help you very much. But if you do know, this system is very effective I think.

You could make a list, were all the words are in.
Like: apple
        orange
        ...
Now it picks up a random word in the list. Thats the first variable
Now it fills every letter in a list but replace one RANDOM letter by _ an set a second variable on the replaced letter
Like:a   or:a
       p       _
       p       P 
       _       l
       e       e
Now you set a variable on the list, that it looks like this: app_e or a_ple.
Then it asks what letter is missing. If the answer is the second variable it says correct and add one point otherwise it says incorrect and adds nothing
With this system you don't need eany sprites and you can add new words very easy.
Is this to complicated or do you know lists and variables?
If not I would like to help you. And could I try to make this project to? With credits of course!

And sorry english is not my mother language so there might be some mistakes.

Last edited by Tohmis (2013-04-18 19:52:56)


Check out my new game
http://scratch.mit.edu/static/projects/Tohmis/3300878_sm.png

Offline

 

#6 2013-04-19 08:28:45

EH7meow
Scratcher
Registered: 2013-03-23
Posts: 24

Re: Help with a word-base game

What you should do now is go to the costumes for App-e and make a new one. This time write Ora-ge or whatever word you want to do next. Now you need to make a variable, let's call it "Question No.", now if the L key is pressed on costume 2 (or any other one) it won't go to costume 2 (hopefully) if you're using my scripts. Now do:

when gf clicked
set [QuestionNo.] to (1)
switch to costume[costume1]
Now do:
when[L v]key pressed
if<(Question No.)=[1]>
switch to costume [costume2]
change[QuestionNo.] by (1)
Now do:
when[N v]key pressed
if<(Question No.) = [2]>
switch to costume[costume 3]
change[QuestionNo.] by (1)
Hope this helps.

Last edited by EH7meow (2013-04-23 13:21:19)


Love lovehearts? Love mending lovehearts? Then you'll love Love Doctor

Offline

 

Board footer