Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » Dynamic Text
- XR2
- Scratcher
2 posts
Dynamic Text
Is there anyway to make dynamic text? Like, to let the player name their character in the game and that name shows up in text dialogue.
- AonymousGuy
- Scratcher
1000+ posts
Dynamic Text
Here is a little example:
I hope this helps!
when gf clickedBasically, you can use the "ask [] and wait“ block to get text input, and use the ”join [] []" block to add strings together.
ask [Hello. What is your name?] and wait
set [name v] to (answer) //In case you want to use it later
say (join [That is an interesting name, ] (name))
I hope this helps!
- rupiroo
- New to Scratch
1 post
Dynamic Text
What if you want to store changing information then display it dynamically in a custom design, like for a table of game times and scores?
Am currently looking at this: http://scratch.mit.edu/projects/10096959/#editor
Am currently looking at this: http://scratch.mit.edu/projects/10096959/#editor
- Discussion Forums
- » Questions about Scratch
- » Dynamic Text