Scratch

Create a username and password for Scratch

Click [|JOIN SCRATCH]

scratch username - your school id number choose password - your school password confirm password - your school password

NEXT

add your birthdate - you must be over 13 enter your email - use your school email

YOU ARE NOW ABLE TO SVAE YOUR PROJECTS


 * 1) This is done as a **multiple step process ** and will be done over several classes.
 * 2) A five step plan is shown below.
 * 3) Each student will create their own version of this game with their own character and background, and their own rules for movement/food/enemy.
 * 4) There are enough variations to keep the game interesting and different from any other games in the class.

**Lesson 1.** 1. Choose a background and character.
 * 1) Click on stage and Backgrounds tab and either import one of the Scratch backgrounds provided or paint your own. In this example the default Underwater background is used.
 * 2) Delete the cat (use scissors) on the top and either create your own character or import one of the Scratch characters or import a character designed elsewhere (e.g. cute character designed as part of Inkscape lesson).
 * 3) Once a character has been imported, it can be further modified. Even default Scratch characters can be customized. E.g. this lesson uses a standard Scratch fish with the color changed.

2. Move the character with arrow keys.  
 * 1) Add the following script to move character each time the keys are pressed.
 * 2) The important new block is the //‘Point’ block  //.
 * 3) Click on the //‘Always face left/right’  // or Do not rotate if the character should not flip around when moving.

**Lesson 2** <span style="background-color: #ffffff; color: #333333; font-family: verdana,tahoma,arial,sans-serif; font-size: 12px;">1. Add a new sprite (the food) for the character to catch/eat. <span style="background-color: #ffffff; color: #333333; font-family: verdana,tahoma,arial,sans-serif; font-size: 12px;">2. Set position of food using the xy coordinates. Have it disappear or be eaten when touched by the character. <span style="background-color: #ffffff; color: #333333; font-family: verdana,tahoma,arial,sans-serif; font-size: 12px;">3. Script to add to the yellow fish along with the arrow keys movement scripts is <span style="background-color: #ffffff; color: #185e15; font-family: verdana,tahoma,arial,sans-serif; font-size: 12px; text-decoration: none;">
 * 1) In this example a small yellow circle (a simple gold coin) is created and named ‘food’.
 * 2) Set position of character and food, have food disappear when eaten, have character indicate it ate the food.
 * 1) The following script shows how to set the coordinates of the food and have it disappear when the character (yellowfish) touches it. It uses the Hide/Show in the Looks blocks.
 * 2) It also broadcasts a message ‘eaten’ that the fish will use to change or say something when it eats food.
 * 3) Script for the food is as follows
 * <span style="color: #185e15; font-family: verdana,tahoma,arial,sans-serif; font-size: 12px; line-height: 1.5; text-decoration: none;">[[image:http://www.digitalartforall.com/wp-content/uploads/2010/10/scratch-game2.png width="198" height="226" link="http://www.digitalartforall.com/wp-content/uploads/2010/10/scratch-game2.png"]]

<span style="background-color: #ffffff; color: #333333; font-family: verdana,tahoma,arial,sans-serif; font-size: 12px;">**Lesson 3** <span style="background-color: #ffffff; color: #333333; font-family: verdana,tahoma,arial,sans-serif; font-size: 12px; line-height: 1.5;"> <span style="background-color: #ffffff; color: #185e15; font-family: verdana,tahoma,arial,sans-serif; font-size: 12px; text-decoration: none;"> <span style="background-color: #ffffff; color: #333333; font-family: verdana,tahoma,arial,sans-serif; font-size: 12px; line-height: 1.5;"> <span style="background-color: #ffffff; color: #185e15; font-family: verdana,tahoma,arial,sans-serif; font-size: 12px; text-decoration: none;"> <span style="background-color: #ffffff; color: #333333; font-family: verdana,tahoma,arial,sans-serif; font-size: 12px;">**Lesson 4** <span style="background-color: #ffffff; color: #333333; font-family: verdana,tahoma,arial,sans-serif; font-size: 12px; line-height: 1.5;">
 * 1) In this lesson, expand on the above by explaining the use of random numbers, and the use of broadcast.
 * 2) Each time the game is played (the green flag is clicked) the food is always in the same place. Instead of picking the x,y coordinates, let the computer pick it randomly, by using random numbers.
 * 3) See updated script for food. In this it also hides and reappears after waiting second at a different place.
 * 1) Use the broadcast message (food is eaten) to change the fish, example below shows fish getting bigger, and changing color.
 * 2) In this case it is necessary to reset the fish to original.
 * 3) See below on changing fish on broadcast and resetting on green flag.
 * 1) Use scripts similar to that of food to create an enemy, example the shark.
 * 2) After the shark waits and touches the fish, it can broadcast a message to tell that the game is over.
 * 3) The Game Over sprite can then listen for this message and show itself and stop the game.
 * 4) In this example, the Shark also moves slowly around forever in the tank, starting by pointing at a random angle and then bouncing off the edges.

<span style="background-color: #ffffff; color: #185e15; font-family: verdana,tahoma,arial,sans-serif; font-size: 12px; text-decoration: none;"> <span style="background-color: #ffffff; color: #185e15; font-family: verdana,tahoma,arial,sans-serif; font-size: 12px; text-decoration: none;"> <span style="background-color: #ffffff; color: #333333; font-family: verdana,tahoma,arial,sans-serif; font-size: 12px;">**Lesson 5** <span style="background-color: #ffffff; color: #333333; font-family: verdana,tahoma,arial,sans-serif; font-size: 12px; line-height: 1.5;"> <span style="background-color: #ffffff; color: #185e15; font-family: verdana,tahoma,arial,sans-serif; font-size: 12px; text-decoration: none;">
 * <span style="background-color: #ffffff; color: #333333; font-family: verdana,tahoma,arial,sans-serif; font-size: 12px; line-height: 1.5;">Create a sprite called //GameOver// and set it to //stop the game// when the Shark touches the fish, and the broadcast message is received. In this example, the Game is also over if time runs out using the wait as a timer.
 * 1) If there is a definite way to win the game, example catching all the food (in this example the count of food is 4), then another sprite called YouWin can be used as follows.
 * 2) In order to count the food caught, create a variable called count and use it as follows in the YouWin sprite.

http://www.computersforcreativity.com/resources/scratch/scratchcatchinggame