Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Broadcast message won't work
- jess3993
-
New Scratcher
7 posts
Broadcast message won't work
I have said broadcast message ‘Rosa’ when this is supposed to happen it does not work, however when i say broadcast a different previously used message everything works. Please help I have no idea why it won't work
Thank you!
Thank you!
- GadgetAndyMan
-
Scratcher
100+ posts
Broadcast message won't work
Have you a link to your project so we can see what is wrong?
- jess3993
-
New Scratcher
7 posts
Broadcast message won't work
Yes I've shared it, do i just copy and past a link like normal?
- GadgetAndyMan
-
Scratcher
100+ posts
Broadcast message won't work
Yes 
I have looked inside your project and I don't see no broadcast ROSA! or ROSA blocks but I do see When I Receive blocks for them.

I have looked inside your project and I don't see no broadcast ROSA! or ROSA blocks but I do see When I Receive blocks for them.
Last edited by GadgetAndyMan (Dec. 30, 2013 18:29:38)
- jess3993
-
New Scratcher
7 posts
Broadcast message won't work
Sorry i've changed it now to ‘I will be thinking of it in my national language- spanish’ as rosa wasnt working.. also with sprite 2, it used to change colour after the dog caught it but now it does not change since i have been messing around with the broadcasted message
.
I wanted to create a game where , when the coloured bone was caught (sprite 2),it would change colour by using the code ‘change colour effect by 25’ (which used to work) and then the dog would broadcast a message stating the new colour, each time the dog caught this bone the score would go up.
Please help I don't understand why it is not working since i have changed the broadcasted message ! Thank you!
.I wanted to create a game where , when the coloured bone was caught (sprite 2),it would change colour by using the code ‘change colour effect by 25’ (which used to work) and then the dog would broadcast a message stating the new colour, each time the dog caught this bone the score would go up.
Please help I don't understand why it is not working since i have changed the broadcasted message ! Thank you!
- GadgetAndyMan
-
Scratcher
100+ posts
Broadcast message won't work
If i have understood you correctly, I have got it working with the following on Sprite2
If that isn't what you are wanting, then please say
when I receive [I will be...
forever
move (pick random (1) to (10)) steps
if on edge, bounce
if <touching [scratch pic]?> then
change [color] effect by (25)
end
end
If that isn't what you are wanting, then please say

- jess3993
-
New Scratcher
7 posts
Broadcast message won't work
Oh yes thank you, got it.
Also do you know how to get my dog to say a different colour each time my sprite 2 disappears ? I can't figure it out with out putting the ‘say’ in the forever section, but then obviously the dog always says the same colour!
Thank you so much!!
Also do you know how to get my dog to say a different colour each time my sprite 2 disappears ? I can't figure it out with out putting the ‘say’ in the forever section, but then obviously the dog always says the same colour!
Thank you so much!!
- GadgetAndyMan
-
Scratcher
100+ posts
Broadcast message won't work
One way is instead of using change color effect, use costumes for Sprite2 and colour them for the different colours you want. You could then get the dog to say the colour based on what costume Sprite2 is on.
- jess3993
-
New Scratcher
7 posts
Broadcast message won't work
Thank you! But then how to I get my dog to say the colour in co-ordinance with the costume change ? This is the bit I just can't figure out, it's driving me mad haha.
- GadgetAndyMan
-
Scratcher
100+ posts
Broadcast message won't work
Use the following block on Sprite2 
On the Dog Sprite scratch pic:
Hopefully that gets you going in what you are wanting to happen.

broadcast [Red]
On the Dog Sprite scratch pic:
when I receive [Red]
say [Red] for (2) secs
Hopefully that gets you going in what you are wanting to happen.
- jess3993
-
New Scratcher
7 posts
Broadcast message won't work
thank you, do you know how to stop every thing when the score reaches 5 by any chance?
- GadgetAndyMan
-
Scratcher
100+ posts
Broadcast message won't work
You could do something like this:
when green flag clickedReplace Play Game block with your own blocks.
repeat until <(Score) = [5]>
Play Game
end
- bbciplayer
-
Scratcher
500+ posts
Broadcast message won't work
You could do something like this:when green flag clickedReplace Play Game block with your own blocks.
repeat until <(Score) = [5]>
Play Game
end
Or
when green flag clicked
forever
if <(score) = [5]> then
stop [all v]
end
end
- FatCat0915
-
Scratcher
1 post
Broadcast message won't work
I don't get it, how do you actually get messages to do stuff, like, in my case, I need to get other sprites to hide when my sprite touches a different sprite, and I'm pretty sure messages do that, or am I wrong?
- dogzter
-
Scratcher
14 posts
Broadcast message won't work
I have said broadcast message ‘Rosa’ when this is supposed to happen it does not work, however when i say broadcast a different previously used message everything works. Please help I have no idea why it won't work![]()
Thank you!
broadcast [ROSA v]
then go to the reciver and
when I receive [ROSA v]
move (3) steps
something like that
if it doesn't cover tell me
- sunpatchkitty
-
Scratcher
2 posts
Broadcast message won't work
Broadcasting messages doesn't work for me. Am I doing something wrong?
Last edited by sunpatchkitty (Nov. 16, 2015 22:40:20)
- deck26
-
Scratcher
1000+ posts
Broadcast message won't work
Broadcasting messages doesn't work for me. Am I doing something wrong?Please start your own topic, this one is very old.
- deestrada2
-
Scratcher
1 post
Broadcast message won't work
ok
Last edited by deestrada2 (May 24, 2017 00:01:34)
- Discussion Forums
- » Help with Scripts
-
» Broadcast message won't work









