Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Text Box adding to a game
- Lunaheart99
-
New Scratcher
6 posts
Text Box adding to a game
ok so i don't know how to explain it very well but i will try my best. so i'm creating a game and there is a question section so then the game can decide what the player will do first and other things. ok so for you pokemon players on the ds or dsi or whatever the others are you know how you can type things in like your name? well thats what i wanna do in my scratch project. is there like a way i can do an answer box in my scratch game and have only people who play it use it when it comes up?
- Centrifugal
-
Scratcher
500+ posts
Text Box adding to a game
Use the Ask & Answer block
Ask [Insert what to ask here] and wait
(Answer)
- Splodgey
-
Scratcher
100+ posts
Text Box adding to a game
Well you could make two sprites, both withUse the Ask & Answer blockAsk [Insert what to ask here] and wait
(Answer)
ok another dumb question…. is there an options thing where i can set certain things for someone to click or no?
when this sprite clickedbut otherwise, no.
Last edited by Splodgey (April 20, 2014 13:42:04)
- Lunaheart99
-
New Scratcher
6 posts
Text Box adding to a game
Well you could make two sprites, both withUse the Ask & Answer blockAsk [Insert what to ask here] and wait
(Answer)
ok another dumb question…. is there an options thing where i can set certain things for someone to click or no?when I'm clickedbut otherwise, no.
ok thanks
- Lloviant54
-
Scratcher
14 posts
Text Box adding to a game
Well, here's an example:
when this sprite clicked
ask [Insert what to ask here] and wait
say (answer) for (X) secs
- Chrome792
-
Scratcher
7 posts
Text Box adding to a game
I have found a way of textboxes and although it is in VERY EARLY stages of development, i have found a way. Here is my project: http://scratch.mit.edu/projects/43065844/ using text boxes
- upupup3
-
Scratcher
4 posts
Text Box adding to a game
i wana know how u add a text place i wana make it so u can choose a name!?!?!?!Allso how do u make a floof a sprite can walk on…..?
- ThePickaxe2
-
New Scratcher
2 posts
Text Box adding to a game
I have a question related to this; How to you use the name inserted in ‘answer’ in other textboxes that are used? To clarify, how can I make textboxes address this name?
- deck26
-
Scratcher
1000+ posts
Text Box adding to a game
I have a question related to this; How to you use the name inserted in ‘answer’ in other textboxes that are used? To clarify, how can I make textboxes address this name?Store the answer in a variable and use it in your text (or just use the answer variable if you don't need it for something else)
ask [] and wait
set [myname v] to (username)
say (join [hello there ] (myname))
- Ataxaos
-
Scratcher
500+ posts
Text Box adding to a game
What you said was correct, but the blocks are very slightly incorrect. I assume it's a mis-click?I have a question related to this; How to you use the name inserted in ‘answer’ in other textboxes that are used? To clarify, how can I make textboxes address this name?Store the answer in a variable and use it in your text (or just use the answer variable if you don't need it for something else)ask [] and wait
set [myname v] to (username)
say (join [hello there ] (myname))

ask [] and wait
set [myname v] to (answer)
say (join [hello there ] (myname))
- deck26
-
Scratcher
1000+ posts
Text Box adding to a game
Well spotted, apologies for any confusion.What you said was correct, but the blocks are very slightly incorrect. I assume it's a mis-click?I have a question related to this; How to you use the name inserted in ‘answer’ in other textboxes that are used? To clarify, how can I make textboxes address this name?Store the answer in a variable and use it in your text (or just use the answer variable if you don't need it for something else)ask [] and wait
set [myname v] to (username)
say (join [hello there ] (myname))ask [] and wait
set [myname v] to (answer)
say (join [hello there ] (myname))
- maiareAJ
-
Scratcher
17 posts
Text Box adding to a game
That doesny help

heres what I'm looking for
(write: insert here tone: 1 speed: 4)
Last edited by maiareAJ (Dec. 6, 2015 03:34:22)
- deck26
-
Scratcher
1000+ posts
Text Box adding to a game
I suggest you start your own topic and give more details (and share a project if possible). I'm not clear what you're asking.
That doesny help
heres what I'm looking for(write: insert here tone: 1 speed: 4)
- obthegreat2
-
Scratcher
25 posts
Text Box adding to a game
use a list. make it really narrow, and it will look perfect.
- Spottedwing84
-
Scratcher
2 posts
Text Box adding to a game
Hey my sprites dissapeared when i played my animation bu it's still there on the bottom with the programing. Can someone help me with this???? (please btw it's an animation)
- Ataxaos
-
Scratcher
500+ posts
Text Box adding to a game
Hey my sprites dissapeared when i played my animation bu it's still there on the bottom with the programing. Can someone help me with this???? (please btw it's an animation)Make your own topic in the forums, and remember to post the link to your project.
It's hard to help without seeing what's wrong and just hearing your description.
From what you're describing, try this:
go to x: (0) y: (0)The sprite should appear in the center of the screen.
show
go to front
clear graphic effects

Remember to reset the position, show your sprite, and clear all effects each time you play the animation!
- Bouncy_Panda
-
Scratcher
1 post
Text Box adding to a game
I think he means how games -like undertale- have a sound each time the character speaks, im having trouble using blocks too heheI suggest you start your own topic and give more details (and share a project if possible). I'm not clear what you're asking.
That doesny help
heres what I'm looking for(write: insert here tone: 1 speed: 4)

- ditpowuh
-
Scratcher
4 posts
Text Box adding to a game
ask [What do you want to say?] and wait
if <(answer) = (answer)>
then
say (answer) for (2) secs
end
Last edited by ditpowuh (Dec. 30, 2015 12:13:42)
- Discussion Forums
- » Help with Scripts
-
» Text Box adding to a game

