Download "dogandcrab"(2 sprites and 3 scripts) and open it in Scratch
Project Notes
A quick game to copy with two sprites and simple mouse following movement. Use the mouse to follow the crab and watch the crab run away.
The elements of making a simple game like this are:
1. Put a green flag contol event on each sprite to set up the poistions at the beginning of the game. Here the dog goes to the middle and the crab is randomly placed on the stage.
2. Add a forever loop on the main control sprite to control movement. In this case the dog follows the mouse.
3. Add a sensing component into the forever look to work out when things happen. In this case when the dog touches the crab.
4. Do some stuff when the dog touches the crab but also broadcast something so the other sprites (or the stage) can also react.
5. Add a receive event onto the crab so it runs away when the dog touches it. Messaging between sprites is better than lots of sensing.
6. Add a background and voila - c'est finis (it is finished).
Comments
You need to be logged in to post comments
Add a Comment