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.

Slides:



Advertisements
Similar presentations
Sprite-visual object (actor on the stage) Scripts- Tells actors (sprites) what to do.
Advertisements

GAME:IT Junior Learning Game Maker: The Score Tab.
Create a Simple Game in Scratch
Create a Simple Game in Scratch
Pong! “The oldest commercially available game in history” Resources created from the video tutorials provided by David Phillips on
Lets Play Catch! Keeping Score in Alice By Francine Wolfe Duke University Professor Susan Rodger May 2010.
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.
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.
How to make a game on game maker 7. Start With an Idea Before you actually start making your game, you are going to need an idea as to what it is you.
Racing Car Game Using the keys to control a sprite.
LO: Learn how to develop your game further to include interactions with the device.
GameMaker.  A lot of Different Definitions  Easier to Say What is NOT a Game  Movie is Not a Game  No Active Participation  Final Outcome is Fixed.
Creating pong in scratch Learning objectives: To learn how to program Sensing via colour and sprite proximity O:\ICT\ks3\scratch\scratch Exercises\Creating.
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.
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.
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.
Catch the Clown Tutorial Tech Camp Fall 2008 Colorado School of Mines.
Game Maker Terminology
Shooters in GameMaker J Parker.
Begin a new story or edit a Photo Story project that has already been created. Make your selection and click next. 1.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
TRIGGERS Triggers tell a script to start executing There are four types of triggers: When green flag is clicked When I am clicked When is pressed When.
Scratch Another computer programming language Developed by MIT in 2003
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
Marble Racer. 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.
Using MIT Scratch for Programming and Control Exercise 1 Creating movement Year 11 DTG 2012.
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.
Motion Path Go Kart 1. Google: Go Kart Track Layout (similar to the image below) Find a track with at least 10 or more curves (not a NASCAR oval) Save.
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 
Scratch Part 2 – Character Commands. What does a command do?  Commands in programming allow an object whatever it is to do something. In the case of.
Computer Programming Modeling a Passive Solar Home.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
Introducing Scratch Learning resources for the implementation of the scenario
Game Maker Tutorials Introduction Clickball IntroductionClickball Where is it? Shooting Where is it?Shooting.
School of Computer Science Space School 2015 Programming a Lunar Lander Game.
Index Background Costumes Making object walk smoothly Controlling an object with the keyboard Control an object with the mouse Changing costume when hit.
Review for Final June 13, 2016.
Scratch Helicopter Game
Create a Halloween Computer Game in Scratch
Commands in Scratch.mit.edu
Scratch for Interactivity
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
Scratch Programming Intro
Objective of the lesson
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Maze Race. Maze Race Race The first thing you need to do is change the background so click on stage. Then click on background. Now click paint Select.
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
The coordinate system Susan Ibach | Technical Evangelist
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
Scratch Racing.
CSC 221: Introduction to Programming Fall 2018
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Pen Cards Pen Cards Back and Forth Draw a Line Special Effects
Catch Game Cards Catch Game Cards Make a Card Go to the Top Fall Down
Presentation transcript:

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 line down the center showing "speed" and "motion" of car. Obstacles for the car to avoid

To begin with, we are going to create the stage for our race car game. Select the Stage, click the Backgrounds tab, then click the Edit button.

Draw a racetrack background similar to the image as shown to the right.

Now that we have our stage, we can begin to create our race car. Click the Paint new sprite button and draw a racecar from the perspective of looking down at the car from above, similar to the image to the right.

Our race car will be controlled using the Up Arrow, Down Arrow, Left Arrow, and Right Arrow keys. Thus, we need to create scripts for each key. To begin with, create the Up Arrow script as shown in the image to the right. This simply moves the car up by 10 when the up arrow is pressed.

Next, create the Down Arrow script as shown in the image to the right. This script moves the car down by 10 when the down arrow is pressed.

To simulate a real car, we are going to make the sprite rotate slightly whenever the user presses the left or right arrow keys Create the Right Arrow script as shown in the image to the right.

Lastly, create the Left Arrow script as shown in the image to the right.

Test all of your arrow keys to ensure your race car is working as intended.

Next we are going to keep track of the racecars speed. variable Speed Create a new variable (for all sprites) called Speed.

Create the script as shown in the image to the right to keep track of the racecars speed.

The next step in this tutorial is to simulate movement and speed. To do this, click the Paint new sprite button and draw a sprite similar to the image in the right.

We want our striped line to continually move downwards. To do this, create the script as shown in the image to the right.

Next, we want the line to appear at the top of the screen once it reaches the bottom of the screen. To do this, create the script as shown in the image to the right. You may need to adjust how long to wait depending on how you drew your line sprite.

The final step in this tutorial is to create obstacles for our racecar to avoid. Create a new sprite and draw an obstacle. In this tutorial, we will use a puddle of oil as an example.

We want the obstacle to repeatedly and randomly appear on the screen. To accomplish this, create the script as shown to the right.

Lastly, we want our racecar to spin out of control if it touches the oil. To do this, click your Car sprite and create the script as shown to the right.

Congratulations! Youve finished your racecar game. Dont forget to test your game to ensure everything works properly. See the next slide for additional challenges to complete.

Add sounds to your game Add a score variable that increases by 1 every 3 seconds, but decreases by 5 whenever the car hits the oil, and/or whenever the car leaves the road and drives on the grass. Add more obstacles Be creative!