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

#1 2010-08-24 04:27:10

Mrs_Walker
New Scratcher
Registered: 2010-08-21
Posts: 1

How to create a "enter name box"

I am currently making a game. At the start of my game i want the person to enter their names but i dont know how to do this. Can anyone help!!! PLEASE!!!

Offline

 

#2 2010-08-24 07:22:22

unknownPerson
Scratcher
Registered: 2010-06-05
Posts: 4

Re: How to create a "enter name box"

Use the [ ask [    ] and wait ] block. Also, this belongs in All About Scratch.

Offline

 

#3 2010-08-24 07:23:32

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: How to create a "enter name box"

unknownPerson wrote:

Use the [ ask [    ] and wait ] block. Also, this belongs in All About Scratch.

Oops, wrong account! (That was me)


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#4 2010-08-24 07:26:51

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: How to create a "enter name box"

if you want something quick and easy, i recommend using the ask block like SRR said above. but if you want it to look nice, you can use a variable with some extra scripts.
they would be something like: [/blocks]
<when[ A ]key pressed>
<set{ name }to( join <{ name }> and A

Offline

 

#5 2010-08-24 07:26:55

developdood
Scratcher
Registered: 2009-04-16
Posts: 63

Re: How to create a "enter name box"

put it in the stage and it will look better. the (answer) block will tell you the name.


Have a look at some of my games. I made a cool physics game called "Physics Marble Cannon" which is really cool. I let anyone remix any of my projects without permission or credit necessary.

Offline

 

#6 2010-08-24 09:10:29

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: How to create a "enter name box"

I'd say you're looking for the [ask _ and wait] and (answer) blocks.  Both are in the sensing category.

Like LS97 said, you could make your own input system, but that usually requires more work than it's worth.


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer