My cat loves this game, she will stare at the screen and pat at the dog and watch it move around the computer screen. Thanks for the instructions I will share it with my teacher outreach via my program at www.swatweb.net for their after school clubs.
SWATWEB looks interesting. We have learning videos now at www.redware.com/scratch/lessons.html that you might want to link to.
Download this project!
Download the 2 sprites and 3 scripts of "dogandcrab" 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.
We have a video tutorial showing how to make this game as part of our lesson plan at www.redware.com/scratch/dogandcrab.html.
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 loop 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 a message 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 broadcasts a message to say that it has touched the crab.
Messaging between sprites is better than lots of sensing on each sprite.
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
My cat loves this game, she will stare at the screen and pat at the dog and watch it move around the computer screen. Thanks for the instructions I will share it with my teacher outreach via my program at www.swatweb.net for their after school clubs.
SWATWEB looks interesting. We have learning videos now at www.redware.com/scratch/lessons.html that you might want to link to.