I have two sprites on my screen. However, their scripts are on different script screens. Can I have command blocks for both sprites together? So that they can alternate speech bubbles to make it look like a conversation?
Offline
If you can get the timing right, that should work fine.
Offline
There's a way of doing this - if you use broadcasts. Like so:
SPRITE 1
<when green flag clicked> <-- Start the thing you want to happen first with this
<say[ hello ]for( 2 )secs> <-- Make Sprite2 do or say something
<broadcast[ hello]] <-- Add a broadcast. You can name broadcasts anything
SPRITE 2
<when I receive[ hello]] <-- Start the thing you want to happen after "hello" with this
<say[ hi! ]for( 1 )secs> <-- Make Sprite 2 do/say something else
<broadcast[ hi! ]] <-- You can add more broadcasts if you want
SPRITE 1
<when I receive[ hi! ]] <-- Make sure you use the right broadcast!
<say[ I've got to go! ] for ( 3 )secs>
<hide>
You could make it much longer than this, and you can add different things such as moving and changing costume. Or you can use the ask block (from Sensing) to make your conversation interactive. Hope this helps
Offline
Wolfie1996 wrote:
There's a way of doing this - if you use broadcasts. Like so:
SPRITE 1
<when green flag clicked> <-- Start the thing you want to happen first with this
<say[ hello ]for( 2 )secs> <-- Make Sprite2 do or say something
<broadcast[ hello]] <-- Add a broadcast. You can name broadcasts anything
SPRITE 2
<when I receive[ hello]] <-- Start the thing you want to happen after "hello" with this
<say[ hi! ]for( 1 )secs> <-- Make Sprite 2 do/say something else
<broadcast[ hi! ]] <-- You can add more broadcasts if you want
SPRITE 1
<when I receive[ hi! ]] <-- Make sure you use the right broadcast!
<say[ I've got to go! ] for ( 3 )secs>
<hide>
You could make it much longer than this, and you can add different things such as moving and changing costume. Or you can use the ask block (from Sensing) to make your conversation interactive. Hope this helps
This works just great! Thank you very much indeed. Great stuff!
Offline
You're welcome Glad to help!
Offline