Creating a Tank Game in Scratch

Slides:



Advertisements
Similar presentations
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.
Advertisements

Michael Parkes Dudley LA What can Scratch do? Make simple games, animations, presentations and stories.
Pong! “The oldest commercially available game in history” Resources created from the video tutorials provided by David Phillips on
Creating a Basic Pacman game
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
This game is loosely based on the Whack-A- Mole arcade game.  Each game starts with 45 seconds of play.  Moles randomly pop out of holes on the landscape.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech Oct 2010.
Scratch Workshop Thursday, August 26, 2010.
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.
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.
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.
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.
Institute for Personal Robots in Education (IPRE)‏ CSC 170 Computing: Science and Creativity.
CoderDojo Roscommon. Today's Ninja Challenge: Create a GhostBuster Game Like This.
Play Road Game to understand the game Click on each sprite to understand its script Think about a different place that a sprite would have to get across.
1 Understand how to use Scratch to: – Animate a sprite – Add sound to your script – Use the forever command to create a loop Lesson 2: Learning Objectives.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech May 2011.
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.
Image #1 Getting Started
1 Use different costumes in Scratch to make an animation effect Synchronise interaction between 2 or more sprites Lesson 3: Learning Objectives.
Computer Programming Modeling a Passive Solar Home.
Using MIT Scratch for Programming and Control Exercise 1 Creating movement Year 11 DTG 2012.
Games Programming in Scratch
Cloning in Scratch Computer App Session 6. Cloning in Scratch Learning Objectives: I will clone sprites in Scratch to create copies of an existing sprite.
Using MIT Scratch for Programming and Control Exercise 4 – Cat and Dog game Year 9 ICT Autumn Term 2007.
Welcome to Scratch By Miss Key. The Main Screen Viewing screen with choice of views.
 SCRATCH is a new programming language that lets you create your own interactive stories, animations, games, music, and art.
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.
Computer Programming with Scratch JAOIT 8. Scratch Scratch is a programming language that makes it easy to create your own interactive stories, animations,
Changing Backgrounds 3 methods of achieving this.
Sprites & Backdrops. Sprites Sprites are the actors that perform the commands in your script. The cat is the default Sprite. Scratch has many other Sprites.
Play Road Game to understand the game Click on each sprite to understand its script Think about a different place that a sprite would have to get across.
Scratch : Animation and game programming Task 6: Space travel.
Index Background Costumes Making object walk smoothly Controlling an object with the keyboard Control an object with the mouse Changing costume when hit.
Using MIT Scratch for Programming and Control Programming 9.
Review for Final June 13, 2016.
Scratch Helicopter Game
Create a Halloween Computer Game in Scratch
Commands in Scratch.mit.edu
Scratch for Interactivity
Exploring Mathematical Relationships Module 5: Investigation 3
Co-ordinates And Geometry Module 6: Investigation 2
Building with Numbers Module 4: Investigation 3
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.
How to work with your sprite
© A+ Computer Science -
Prezi.
Cosmic Chorus Green Book, Ch 5.
Competitive Multiplayer Game
BYOB – Costumes.

Scratch – Simple Programming
Cosmic Chorus.
Motion and Looks.
Lesson 1 Introduction to Scratch Basic blocks
Areas of the SCRATCH 2 Screen
Introduction to scratch animation

ICT Department- Scratch
Image #1 Getting Started
Tweening along a path.
Introduction to Snap Programming
Scratch: Animation and game programming
Game development using Scratch
Creating a Simple Game in Scratch
Introducing Scratch and Creating Sprite
CSC 221: Introduction to Programming Fall 2018
Using MIT Scratch for Programming and Control Exercise 5 – Drawing with Scratch Year 9 ICT Autumn Term 2007.
Scratch Dance Routine.
“A Day in the Life” CTE Enrichment Grades 3-5 Computer Science Unit
Presentation transcript:

Creating a Tank Game in Scratch

Importing a Sprite Firstly, create a new sprite by selecting “paint new sprite”. In the window that appears, press “import” to select a sprite to add to the project. Import the base of your tank, and it will appear on the stage.

Scripting the tank To make the tank move, you’ll need to add a script. Click on your sprite to select it, then go to the “Scripts” tab. Add the script shown below so that when the arrow keys are pressed, the tank moves. If the tank is not facing in the right direction when it moves, edit it and rotate it 90⁰

Importing the gun Now that the tank can move, the gun can be added. Create a new sprite and import the gun sprite. Select “Set Costume Centre” and set it to the centre of the gun. You may have to rotate it 90⁰. Add the following script to the gun, so that it follows the mouse pointer and stays on the tank base.

Creating the crosshair The next thing is to create a crosshair so that the player can see where they are aiming the mouse. Add a script to make the crosshair sprite always follow the mouse pointer.

Adding ammunition Create a new sprite and draw a projectile for the tank to shoot. Go to the “Costumes” tab and import each frame of the explosion animation.

Scripting the ammunition Add a script for the ammunition sprite. When the gun is not being fired, the tank shell does not need to be visible. Use “show” and “hide” to toggle between the two. When the space key is pressed, the shell needs to face towards the crosshair and move towards the crosshair. Then, the costume needs to be switched 9 times, as there are 9 frames in the explosion animation. Finally, the shell is hidden again.

Scripting the ammunition Finally, import a background and try out the game!