Game Development Reference
In-Depth Information
4. We have to create another message using New Message . This can be any kind
of word or even a single leter or number:
5. To make clear what we are calling it, let's name it boss . This message should
summon the boss's state in the game.
6. Before we get there, we also need to summon the waves. So we create another
broadcast message.
7. This will hold a new message named waves .
8. We place this block right after the reset imer block that signifies the start of
the game.
To make use of these broadcasts, someone (or something) has to listen to them.
The important sprites that need to respond to the messages are the Starfish enemies
and the boss, which are yet to be created:
1. We click on the Starfish sprite to switch to its Scripts tab.
2. We detach the script from the when <green lag> clicked block and throw away
the block.
3. In its place, we atach a when I receive <waves> block.
 
Search WWH ::




Custom Search