Create Chase

This tutorial provides steps to “” the Star Huner game and turn it into our Quidditch game. Changing Star Hunter to Harry Potter

You can modify this game to be a different by changing the background, characters, etc. is how we changed Star Hunter to Quidditch.

Change the Backdrop

1. Click on the Stage (red arrow) then on the Backdrops tab (green arrow) 2. You can select new images from the library, or open an image from your computer. Click on the upload icon (blue arrow). This will open a file explorer window. Navigate to the YES Club Scratch Files folder and select QuidditchPitch.png or QuidditchPitch2.png 3. You should now be able to select the Quidditch pitch as your backdrop. Change the Main Character

1. Click on the Cat (red arrow) then on the Costumes tab (green arrow) 2. You can select new images from the library, or open an image from your computer. Click on the upload icon (blue arrow). This will open a file explorer window. Navigate to the YES Club Scratch Files folder and select Harry-graphic.png or Harry-photo.png 3. You should now be able to select the Harry as your character. 4. To change the size of the character • add a Set Size to x% block as shown at the left • OR, you can edit the costume by selecting Convert to Vector and then resize the character. 5. Change the character’s name by clicking on the blue “i” dot and entering a new name. Change the Enemies

1. Click on an Octopus and repeat steps 1-4 from the previous page, but select dementor.png as the new image. Resize as necessary, same as step 5 above. (You could also choose Draco-character.png) 2. Repeat this for each Octopus.

Change the Goal

1. Click on the Star and repeat steps 1-4 from the previous page, but select Snitch1.png or Snitch2.png as the new image. Resize as necessary, same as step 5 above.

Make sure that the sensing block for both enemies and the goal says “touching Harry” (or whatever your hero’s name is). Change the Background Sound

1. Click on the Cat (red arrow) then on the Sounds tab (green arrow) 2. You can select new sound files from the library, or open a file from your computer. Click on the upload icon (blue arrow). This will open a file explorer window. Navigate to the YES Club Scratch Files folder and select quidditch.wav or Harry_Potter_Theme.wav 3. You should now be able to see the new sound loaded. 4. In Harry’s scripts, you should be able to select “quidditch” now as the sound to play. Add Game Over

Above the sprites (characters) you will see there is an area to add new sprites. 1. You can select new characters from the library, or open a file from your computer. Click on the upload icon (blue arrow). This will open a file explorer window. Navigate to the YES Club Scratch Files folder and select Game-Over.png 2. Resize as desired using the steps above. 3. In each enemy sprite script, remove the “stop all” block and add a “broadcast message” event block. 4. From the dropdown, select New Message and call it “Game Over” Add Game Over - continued

5. In the Game Over sprite’s scripts, add the sets of code blocks shown here to first hide the message at the start of the game and then show it in the center when an enemy reaches Harry and the message “Game Over” is sent. Add Title

Above the sprites (characters) you will see there is an area to add new sprites. 1. You can select new characters from the library, or open a file from your computer. Click on the upload icon (blue arrow). This will open a file explorer Title script window. Navigate to the YES Club Scratch Files folder and select Quidditch-chase- title.png 2. Resize as desired using the steps above. 3. In the title’s Scripts tab, add the code as shown here at left to show the title, wait for 2 seconds, then hide the title. 4. You will need to add a wait to Harry’s scripts to have him wait until the tile Harry script disappears to begin following the mouse. 5. You will also want to increase the wait on the enemies by 1 or 2 seconds.