How to make a Shooting Target game in Scratch!. WE ARE GOING TO MAKE A TARGET GAME. This game will have: A Target that will move when clicked. A Timer.

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

In this tutorial, we are going to create: A race car that the user can control with the arrow keys for direction and speed. A simulated road with a striped.
Create a Simple Game in Scratch
Scratch is a Visual Programming Language
Scratch for Storytelling Dr. Ben Schafer Department of Computer Science University of Northern Iowa.
Harry Potter Scratch Game
Adventures in Animation Harry Potter Game Pranali Choubal Kunal Shaw Barb Ericson Dec 2007.
A Christmas Scratch game
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
Write Your First Computer Game!. Coding: Programming Languages Just like you can speak Chinese to someone who understands Chinese to tell them what to.
Scratch Programming Session 9 of 10 Review elements to use in stories, games, etc.
Scratch Programming Session 6 of 10 If-then-else statements interactions Final projects specifications.
Racing Car Game Using the keys to control a sprite.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech Oct 2010.
Mr. Wortzman. Tabs (Block Categories) Available Blocks Script Area Sprite Stage All sprites in this project.
Google Earth How to create a Google Earth Tour and place it in your Wiki.
Creating pong in scratch Learning objectives: To learn how to program Sensing via colour and sprite proximity O:\ICT\ks3\scratch\scratch Exercises\Creating.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
Scratch the Cat. Object Oriented Programing Writing computer programs Based on Objects Instead of Actions Based on Data Instead of Logic.
DRAFTING TECHNIQUES I 136. Here is a basic shape. From here, we will do some advanced drafting once we put this shape on a sheet as a drawing. Select.
Code Club Session 2 Dance Party. What will we learn ?  How to change the background  How to create animations  How to make objects talk to each other.
Using MIT Scratch for Programming and Control Exercise 3 Ball Game Year 9 ICT Autumn Term 2007.
We will be creating a spaceship that simulates real movements in space. The spaceship will fire a laser beam that can destroy targets. The spaceship will.
Introducing Scratch the Cat
Using MIT Scratch for Programming and Control Exercise 6 – Creating a Scratch Packman Year 9 ICT Autumn Term 2007.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech May 2011.
Shooters in GameMaker J Parker.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,
Making a Sprite Dance Barb Ericson Georgia Tech June 2011.
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
Variables and Random Numbers Computer App Session 4.
Games Programming in Scratch
First Project: Dance Dance Sprite  Write a dance with your sprite (You pick or create the sprite)  Incorporate as many of the Motion Commands as you.
How to create a sprite Delete a sprite (e.g. the cat) by right clicking on it and choosing delete. Go to the bottom right hand corner and choose a new.
How to create a sprite Delete a sprite (e.g. the cat) by right clicking on it and choosing delete. Go to the bottom right hand corner of the stage and.
Using MIT Scratch for Programming and Control Exercise 4 – Cat and Dog game Year 9 ICT Autumn Term 2007.
How to create a basic game in Scratch. The Scratch Stage The Scratch stage is 480 pixels wide and 360 pixels high x increasesx decreases.
1 CSC 221: Computer Programming I Fall 2009 Introduction to programming in Scratch  animation sprites  motion, control & sensing  costume changes 
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
Create a Halloween Computer Game in Scratch
Commands in Scratch.mit.edu
Scratch for Interactivity
Scratch Unit Overview We are going to look at computer programming and how to create your very own computer game The piece of software we will be using.
Creating a Tank Game in Scratch
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Introduction to Object-Oriented Programming
Go to =>
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Go to =>
Go to =>
Go to =>
Motion in Scratch 1.
Getting Started with Scratch
Ok, now you have sent an to
Game Over Module 4 Lesson 2.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Game development using Scratch
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Creating a Simple Game in Scratch
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Presentation transcript:

How to make a Shooting Target game in Scratch!

WE ARE GOING TO MAKE A TARGET GAME. This game will have: A Target that will move when clicked. A Timer to show how long you have been playing. A point system to show how many targets you have hit. This game could have: A shooter that will point to the mouse (e.g. A gun.) Something that will be shot out of the shooter (e.g. A bullet.) A background that could change. A target that automatically moves after a certain amount of seconds.

STEP 1 – MAKING THE TARGET SPRITE Make a sprite by clicking on this button Then, draw a sprite that will be the target for the game. When you have finished click ‘OK’. Then delete the cat by right clicking here and clicking delete.

STEP 2 – PROGRAMMING THE TARGET 1 Put a ‘Start’ block at the top. Then, put a forever block underneath. Put a ‘Go to’ block from the ‘Motion’ tab. Go to the ‘operators’ tab and get 2 ‘Pick random’ blocks. Change both of them to have ‘-200’ and ‘200’ in. Put one ‘Pick random’ block in X: and one in Y: Finally, get a ‘wait’ block and put it after the ‘go to’ block and set it to less that 5 seconds. All this will make the target change it’s position to a random coordinate on the stage every 3 seconds.

STEP 3 – PROGRAMMING THE TARGET 2 Add a ‘When sprite clicked’ block from the ‘Control’ tab Put a ‘go to’ block underneath. Then, get two ‘pick random’ blocks and change them to ‘-200’ and ‘200’. Put one ‘pick random’ block in ‘X:’ and one in ‘Y:’ Now, if the sprite is clicked it will change position.

STEP 4 – ADDING THE POINTS SYSTEM Go onto the ‘Variables’ tab. Click ‘Make a variable’. Type ‘Points’ into the box that pops up. Make sure that ‘For all sprites’ is selected. Click ‘OK’. You just created the Points variable!

STEP 5 – PROGRAMMING THE POINTS SYSTEM Add the ‘Set Points to 0’ block from the ‘Variables’ tab in between the ‘Start’ block and ‘Forever’ block. Add the ‘Change Points by 1’ block in between the ‘When sprite clicked’ and ‘Go to’ blocks. This will set the points to 0 when the game is started and whenever you click the target it will add 1 point.

STEP 6 – ADDING THE TIMER Go on to the ‘Variables’ tab again. Click ‘Make variable’. Type ‘Time’ into the box that pops up. Make sure ‘For all sprites’ is selected. Click ‘OK’. You have just created the ‘Time’ Variable.

STEP 7 – PROGRAMMING THE TIMER Put a new ‘Start’ block. Go to the ‘Sensing’ tab. Put the ‘Reset Timer’ block after the Start block. Get the ‘Set Time to’ block from the variables tab and put it inside a ‘forever’ block. Put the ‘timer’ block, from the sensing tab, into where the number is on the ‘Set time to’ block.

STEP 8 – MAKING THE TARGET SPIN Get a ‘Start’ block from the ‘Control’ tab. Get a ‘forever’ block from the ‘Control’ tab. Get a ‘turn clockwise’ block from the ‘motions’ tab and change it to ‘1’ instead of ‘15’ Put the ‘turn’ block inside the ‘forever’ block.

STEP 9 – MAKING THE SHOOTER Make a sprite by clicking on this button Draw the sprite that will be the shooter for the game (e.g. A gun or Bow) Click ‘Ok’ when you have finished.

STEP 10 – PROGRAMMING THE SHOOTER Make sure that you are on the Shooter sprite. Put a ‘Start’ block. Put a ‘forever’ block. Go to the ‘motions’ tab and get a ‘Point towards’ block. Click on the drop down menu and select ‘Mouse-Pointer.’

STEP 11 – CREATING THE BACKGROUND Click on the ‘Stage’ Click on the ‘backgrounds’ tab. Click on the ‘edit’ button. Draw your background. Click ‘Ok’ when you are done.

STEP 12 - ADVANCED - MAKING THE BULLET Create a new sprite with this button. Draw the bullet or the thing that is being shot (e.g. An arrow.) When you have finished click ‘Ok’.

STEP 14 – ADVANCED – PROGRAMMING THE BULLET Because this bit is quite long, just copy the blocks that I have put here. The light blue blocks are from the ‘sensing’ tab The dark blue blocks are from the ‘motion’ tab. The yellow blocks are from the ‘controls’ tab The purple blocks are from the ‘looks’ tab

CONGARTULATI ONS! YOU HAVE FINISHED!