How would I be able to use a name throughout the whole game? So if they type in their name in the game and then if you want to say, "Good job (name)!" How would you do that? I am doing a life game so I need to know how to do that! Thanks in advance!
Offline
[When Green Flag Clicked] [Ask "What is your name?" and wait] [Set variable "name" to "(answer)"] [Say "(join "Good job, " with "(name)" for "5" seconds]
Does that make sense? To add the exclamation point would require another "join" block.
Offline
Magnie wrote:
Code:
[When Green Flag Clicked] [Ask "What is your name?" and wait] [Set variable "name" to "(answer)"] [Say "(join "Good job, " with "(name)" for "5" seconds]Does that make sense? To add the exclamation point would require another "join" block.
[blocks]
<when green flag clicked>
[ask ("Whats your name?")
<set{ name }to( (answer)
<say[ join("Good job, " with "<{ name }> " ]for( 5 )secs>
[/blocks]
Offline
This should be in 'All About Scratch' forums.
Offline
johnnydean1 wrote:
This should be in 'All About Scratch' forums.
I think this actually should be in New Scratchers forums, too.
But, I think the case has already been resolved.
Offline