Broadcast

What is broadcast?

Broadcast is basically saying "something has happened, now do this". Game design is about collisions, we did this last year when we did Kodu.

To the right, Scratchy has some basic movement attached to him.

I want him to fetch the ball on the far right.


So lets add some code to the ball. The first block is awaiting a collision from scratchy.

When that collision occurs, then theball is basically shouting to the 2nd block, "its happened".

When the 2nd block of instructions hears the shout, then it executes.

In this particular example, the ball says hello then disappears.