Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Help
- Gengery46
- New Scratcher
2 posts
Help
I need 1 sprite to ask whats your name and then the other responds with the answer that you just put then sprite 1 asks do you want to dance ad finally sprite 2 says sure. Now how do I do that cause I've been here for an hour and I'm new to this
- deck26
- Scratcher
1000+ posts
Help
ask [What's your name] and wait
broadcast [name-input-done v]
when I receive [name-input-done v] // sprite2 script
say (answer)
broadcast [ask-question-2 v] // sprite1 has a receiver for this broadcast and so on
The broadcast name doesn't matter, just makes sense to make your code readable so meaningful names help with that.
- Discussion Forums
- » Help with Scripts
- » Help