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

#1 2013-05-02 18:28:04

twoawesomepeople123
New Scratcher
Registered: 2013-04-30
Posts: 1

How do you make a game?

I am new, and I am stuck.  How do you switch screens and make characters disappear and stuff?  Please help!

Offline

 

#2 2013-05-02 18:59:34

Liamadams
Scratcher
Registered: 2012-12-08
Posts: 100+

Re: How do you make a game?

to switch screens, just do this:

when gf clicked
switch to costume [costume 1 v]
And to make sprites disappear:
when gf clicked
hide
and to make it show again,
show
So either connect the show or hide block to the when green flag clicked block. Also, if you want to know, the broadcasts and receives are pretty useful.
when gf clicked
hide
wait (1) secs
broadcast [your text here v]

when i receive [your text here v]
show
So there! Hope these tips are useful to u!  big_smile

Last edited by Liamadams (2013-05-02 19:00:55)


http://i39.tinypic.com/3309476.jpg

Offline

 

#3 2013-05-02 19:13:06

joshuaho
Scratcher
Registered: 2012-08-20
Posts: 100+

Re: How do you make a game?

twoawesomepeople123 wrote:

I am new, and I am stuck.  How do you switch screens and make characters disappear and stuff?  Please help!

To make a sprite hide, do this:

hide//makes the sprite disappear
To make a sprite show, do this:
show//makes the sprite appear
To make a sprite switch looks, do this:
switch to costume [costume2 v]
Lets say that you wanted all sprites to hide, without timing.
Then, you need to use this:
broadcast[hide v]//sends a message telling the sprites receiving the message to hide
But to make a sprite receive a message, you need a when I receive block.
when I receive [hide v]//when this message is recieved
hide//disappear
If you wanted a sprite to do something forever, use this block:
forever//makes the sprite do something over, no matter what
Here is a tip for using forever blocks.
If you made a game with lives, and you wanted a sprite to hide if the lives are 0, don't use a forever block. They will make the sprite do a thing forever, and even if it receives a message, they won't hide.
Instead, use a repeat until block.
repeat until//makes the sprite do something continuously until something occurs
If you wanted a sprite to say something, use these blocks:
say[hi] for (3) secs//makes the sprite say this for 3 seconds

say [hi]//makes the sprite say something until something happens
If you wanted a variable, do this:
Go to variable section, click make a variable and type a name. To change a variable appearance, right click the variable and click on large readout.
To change variable color, click on the R in the scratch logo, click turn fill screen off and right click the variable 5 times. Click on the red circle that says menu for me. The menu will pop up. Click change color. Then, choose your color. Click x to exit.
For variable scripting, do this use these blocks
change [score v] by (1)//changes score by +1


set [score v] to (1)//sets score to a certain number

hide variable [score v]//hides the variable

show variable [score v]//shows the variable
I hope this guide helps. If you need more help, please let me know!  smile

Last edited by joshuaho (2013-05-02 19:31:26)


Did you know that you can go to space and see Mars by clicking here?

Offline

 

Board footer