Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make imputable character name?
- skykoi
-
Scratcher
6 posts
How to make imputable character name?
I don't know if I worded the question right or not o___O
But how would I make it so that when a player typed in a name, it would show up as they wrote in dialogue, and in I suppose a little player name box.
But how would I make it so that when a player typed in a name, it would show up as they wrote in dialogue, and in I suppose a little player name box.
- JayZX535
-
Scratcher
62 posts
How to make imputable character name?
1. Make a variable called name
2. Program the background to ask, “What is your screen name?” and set name to the answer.
3. Program it so that whenever the player types something, it joins the value of name“Name,” “: ” and the message.
Remember that open chats are not allowed, however lexicon chats are
Hope this helped, and happy scratching!
-Jay
2. Program the background to ask, “What is your screen name?” and set name to the answer.
3. Program it so that whenever the player types something, it joins the value of name“Name,” “: ” and the message.
Remember that open chats are not allowed, however lexicon chats are

Hope this helped, and happy scratching!
-Jay
- skykoi
-
Scratcher
6 posts
How to make imputable character name?
I don't know what program the background to ask means o__________________O I got as far as make a variable called name
- mitchboy
-
Scratcher
1000+ posts
How to make imputable character name?
Using an ask block is what he means.
- Brightbreeze
-
Scratcher
1 post
How to make imputable character name?
I know how to ask them a question like what's your name but how do you make it show up as a name block?
- Thepuzzlegame
-
Scratcher
1000+ posts
How to make imputable character name?
Is this what you're looking for?
ask [What's your name?] and wait
set [name v] to (answer)
say (join [Hello ] (name))
Last edited by Thepuzzlegame (Jan. 29, 2015 04:08:06)
- Imaginary_Numbers
-
Scratcher
42 posts
How to make imputable character name?
If you want the player to be able to input their name you could do this:
If you want the computer to automatically learn their name if they are signed in to their scratch account you could do this:
or if you want them to name a sprite so that the sprite always has their name above their head you could put this script in that sprite:
ask [What's your name?] and wait
set [name v] to (answer)
say (join [hello, ] (join (name) [ and welcome to my scratch game.])) for (2) secs
If you want the computer to automatically learn their name if they are signed in to their scratch account you could do this:
set [name v] to (username)
say (join [hello, ] (join (name) [ and welcome to my scratch game.])) for (2) secs
or if you want them to name a sprite so that the sprite always has their name above their head you could put this script in that sprite:
ask [What do you want to name me?] and wait
set [my name v] to (answer)
forever
say (my name)
end
- vintermut
-
New Scratcher
7 posts
How to make imputable character name?
I try to implement this in my scratch but game start before i input my name. How to make game start after input name?
- deck26
-
Scratcher
1000+ posts
How to make imputable character name?
I try to implement this in my scratch but game start before i input my name. How to make game start after input name?Don't start the game with the green flag but wait for a broadcast - eg ‘broadcast startgame’.
Then you can ask for the name before you make that broadcast.
- vintermut
-
New Scratcher
7 posts
How to make imputable character name?
I tried but game starts even with broadcast…
- deck26
-
Scratcher
1000+ posts
How to make imputable character name?
I tried but game starts even with broadcast…
when green flag clicked
ask [What's your name?] and wait
set [name v] to (answer)
broadcast [startgame v]
If that doesn't work then it's not the broadcast that's starting the game so look for other green flag scripts.
- vintermut
-
New Scratcher
7 posts
How to make imputable character name?
Ohhhhhh, yes… You are right… I have 2 more green flags in scratch 

- maryano21
-
Scratcher
10 posts
How to make imputable character name?
1. Make a variable called name
2. Program the background to ask, “What is your screen name?” and set name to the answer.
3. Program it so that whenever the player types something, it joins the value of name“Name,” “: ” and the message.
Remember that open chats are not allowed, however lexicon chats are
Hope this helped, and happy scratching!
-Jay
Jay What do you mean set name to the answer
- maryano21
-
Scratcher
10 posts
How to make imputable character name?
Guys how do you make it so that you type a name and then the sprite says something like Welcome Maryan
-Maryan
-Maryan
- P444
-
Scratcher
500+ posts
How to make imputable character name?
Use this block for directly tell your username :
say (join [Welcome ] (username)) for (2) secs//there is a space after WelcomeUse this to ask a name:
ask [What is your name?] and wait
say (join [Welcome ] (answer)) for (2) secs//there is a space after Welcome
Last edited by P444 (Feb. 15, 2015 10:41:12)
- Crimson19
-
Scratcher
1000+ posts
How to make imputable character name?
Simple,
or
ask [What's your name?] and wait
set [Name v] to (answer)
say (join [Hello] (join (Name) [.])) for (2) secs
or
say (join [Hello] (join (Username) [.])) for (2) secs
Last edited by Crimson19 (Feb. 15, 2015 10:53:23)
- P444
-
Scratcher
500+ posts
How to make imputable character name?
Simple,you don't really need that name variable unless you are asking another question, because until you ask another question and answer it, the answer block would be same as the first answer (that is your name) given.ask [What's your name?] and wait
set [Name v] to (answer)
say (join [Hello] (join (Name) [.])) for (2) secs
orsay (join [Hello] (join (Username) [.])) for (2) secs
- GoldenCheatMascot
-
Scratcher
66 posts
How to make imputable character name?
1. Make a variable called nameLOL YOU NOT GIVE HIM THE IDEA BUT THANKS FOR GIVE ME THAT IDEA~~~~~
2. Program the background to ask, “What is your screen name?” and set name to the answer.
3. Program it so that whenever the player types something, it joins the value of name“Name,” “: ” and the message.
Remember that open chats are not allowed, however lexicon chats are
Hope this helped, and happy scratching!
-Jay
- Discussion Forums
- » Help with Scripts
-
» How to make imputable character name?

