This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-03-07 19:28:36

GJHarvey
New Scratcher
Registered: 2013-03-02
Posts: 2

Can't get broadcast to work

I am building an archery game, if statements included for when arrow hit board but somehow I can't broadcast well done, could do better and then Game Over.
These are:-

if (Green) <50 (orange) score
broadcast 'you can do better than that
else
broadcast 'well done, fantastic score.

Changed Variable of score to 70 to see if this would work but get nothing.

Other statements,
IF touching board for scores

Also it should broadcast start when green flag clicked (not so worried about that but need to show broadcast at end.
Thanks

Offline

 

#2 2013-03-07 19:47:42

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Can't get broadcast to work

Okay, let me see if i can help you,

Scripts:

when i receive [arrow shot v]
if < (score) < [50] >
say [You can shoot better than that!]
else
say [Great shooting!]
I think you misunderstand the purpose for broadcasting(I did to, not to worry,)

Broadcasting is for sending a message to all other sprites to do something, like "Start game", but it doesn't actually broadcast text that says "Start Game", it just tell what ever scripts that need to happen when the game is started to happen. You see?  smile

You also need a:
when i receive [Game start v] // Or whatever
to make broadcasting work.

Hope that helps,

CAA14

Last edited by CAA14 (2013-03-07 19:49:01)

Offline

 

#3 2013-03-07 20:05:16

GJHarvey
New Scratcher
Registered: 2013-03-02
Posts: 2

Re: Can't get broadcast to work

Thanks

Offline

 

#4 2013-03-07 20:10:36

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Can't get broadcast to work

No problem.  smile

Regards,

CAA14

Offline

 

Board footer